mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +03:00
Fix for tray icon not stopping on app stop when minimize to tray option is disabled
This commit is contained in:
parent
fc83dcf090
commit
a52472d6e0
@ -1392,8 +1392,7 @@ class AppWindow(object):
|
||||
|
||||
def onexit(self, event=None) -> None:
|
||||
"""Application shutdown procedure."""
|
||||
value = config.get_bool('minimize_system_tray')
|
||||
if platform == 'win32' and value is not None and value:
|
||||
if platform == 'win32':
|
||||
shutdown_thread = threading.Thread(target=self.systray.shutdown)
|
||||
shutdown_thread.setDaemon(True)
|
||||
shutdown_thread.start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user