the window will not close. It won’t close if I press the button or if I press the close box on the window frame.
I presume the reference, although specified as @weak is somehow preventing the closure. A bit of a mystery how to proceed, especially in the “Ok” case.
No I haven’t connected any other callback, especially not close-request.
I have found a work around, which was to set hide_on_close to true and dispose of the window manually, which doesn’t answer the question of why it would not close otherwise.