From 3cf083d9fe05428d728a99023c0508ac4c13b27e Mon Sep 17 00:00:00 2001 From: DevilXD Date: Sun, 4 Sep 2022 09:31:01 +0200 Subject: [PATCH] Fix an issue with the tray icon delaying the shutdown for too long --- gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui.py b/gui.py index 974bebc..7363280 100644 --- a/gui.py +++ b/gui.py @@ -1840,8 +1840,9 @@ class GUIManager: """ Closes the window. Invalidates the logger. """ - self._root.destroy() + self.tray.stop() logging.getLogger("TwitchDrops").removeHandler(self._handler) + self._root.destroy() def unfocus(self, event): # support pressing ESC to unfocus