prefs: Avoid Tk event_generate() calls during shutdown

This commit is contained in:
Athanasius committed 2021-01-11 16:43:33 +00:00
1 parent 571f9665b3
commit 4bddc4c0cb
1 file changed
+2 -1
+2 -1
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")