mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-05-05 18:01:03 +03:00
[1346] Only Shutdown When Present
This commit is contained in:
parent
eae0417797
commit
e9c4ca6b9d
@ -1869,10 +1869,9 @@ class AppWindow:
|
||||
target=self.systray.shutdown,
|
||||
daemon=True,
|
||||
)
|
||||
shutdown_thread.start()
|
||||
except AttributeError: # No SysTray
|
||||
shutdown_thread = threading.Thread(daemon=True)
|
||||
|
||||
shutdown_thread.start()
|
||||
logger.info("No Systray, No Thread to Shutdown")
|
||||
|
||||
config.set_shutdown() # Signal we're in shutdown now.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user