[Bugfix] Fix EDDN queue not processing at startup

Workaround the `.after()` queue being cleared (or invalidated) when the
widget that call was made through is destroyed after that call is made,
which in this case resulted in the EDDN queue not being processed until
some other action re-triggered processing of the EDDN queue.
This commit is contained in:
Ben Peddell committed 2025-10-04 21:58:21 +10:00
1 parent c6f853013e
commit 13487ff763
1 file changed
+1 -1
+1 -1
View File
@@ -183,7 +183,7 @@ class EDDNSender:
f"First queue run scheduled for {self.eddn.REPLAY_STARTUP_DELAY}ms from now"
)
if not os.getenv("EDMC_NO_UI"):
self.eddn.parent.after(self.eddn.REPLAY_STARTUP_DELAY, self.queue_check_and_send, True)
self.eddn.parent.winfo_toplevel().after(self.eddn.REPLAY_STARTUP_DELAY, self.queue_check_and_send, True)
def sqlite_queue_v1(self) -> sqlite3.Connection:
"""