mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-30 17:09:36 +00:00
tk: also hook into WM_DELETE_WINDOW to quit the app
Makes the app exit correctly on Linux when the main window is closed.
This commit is contained in:
1
gui.py
1
gui.py
@@ -1994,6 +1994,7 @@ class GUIManager:
|
||||
# ctypes.windll.user32.ShutdownBlockReasonDestroy(self._handle)
|
||||
else:
|
||||
# use old-style window closing protocol for non-windows platforms
|
||||
root.protocol("WM_DELETE_WINDOW", self.close)
|
||||
root.protocol("WM_DESTROY_WINDOW", self.close)
|
||||
# stay hidden in tray if needed, otherwise show the window when everything's ready
|
||||
if self._twitch.settings.tray:
|
||||
|
||||
Reference in New Issue
Block a user