From 3fe4454888316c6fcb287f04c1899db9e247bf4b Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Tue, 1 Oct 2019 18:54:58 +0100 Subject: [PATCH] Fix for DDE registration --- EDMarketConnector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index e174e9ff..e0829dc5 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -68,9 +68,6 @@ class AppWindow(object): def __init__(self, master): - # Start a protocol handler to handle cAPI registration. Requires main window to exist. - protocolhandler.start(master) - self.holdofftime = config.getint('querytime') + companion.holdoff self.w = master @@ -279,6 +276,9 @@ class AppWindow(object): self.w.bind_all('<>', self.auth) # cAPI auth self.w.bind_all('<>', self.onexit) # Updater + # Start a protocol handler to handle cAPI registration. Requires main loop to be running. + self.w.after_idle(lambda:protocolhandler.start(self.w)) + # Load updater after UI creation (for WinSparkle) import update self.updater = update.Updater(self.w)