Closed ettavolt closed 6 years ago
Which is why we included a close button. This is a weird bug in GTK. Not sure about a fix for it.
What about catching delete-event? There is even a premade handler.
P.S. It may be worth to make it modal.
For some reason they don't seem to work with me. Catching delete-even
changed nothing and preferenceswindow.hide_on_delete()
didn't add anything. Not sure if I am doing it wrong or.
Turns out it's not that simple under python. This way it seem to work:
def hide_on_delete(widget, event):
widget.hide()
return True
preferenceswindow.connect("delete-event", hide_on_delete)
... if settings window is closed via window control, not 'close' button at the bottom. 3.0.1.2.r2.ge7f877d