mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-25 01:06:05 +03:00
[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:
1 parent
c6f853013e
commit
13487ff763
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user