1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-19 02:17:38 +03:00

prefs: Avoid Tk event_generate() calls during shutdown

This commit is contained in:
Athanasius 2021-01-11 16:43:33 +00:00
parent 571f9665b3
commit 4bddc4c0cb

View File

@ -1157,4 +1157,5 @@ class PreferencesDialog(tk.Toplevel):
except Exception:
AXIsProcessTrustedWithOptions({kAXTrustedCheckOptionPrompt: True})
self.parent.event_generate('<<Quit>>', when="tail")
if not config.shutting_down():
self.parent.event_generate('<<Quit>>', when="tail")