From 21789e0692d36d0f9bdbc4c0982ed90922574cfc Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 6 May 2016 22:30:16 +0100 Subject: [PATCH] [#2813] [GTKUI] Fix connection manager showing daemon offline in Windows The daemon status is not retrieved when showing the connection manager at startup on Windows and shows it as offline. This commit restores the removal of simulate call in commit 058b0e41d2 but applies it only to Windows OS as there were no problems in Ubuntu testing. It would suggest then that the issue is isolated to PortableGtkReactor but the exact cause of the problem is still unknown. --- deluge/ui/gtkui/gtkui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index 3c0584832..126bb3568 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -452,6 +452,9 @@ class GtkUI(object): break if self.config["show_connection_manager_on_start"]: + if deluge.common.windows_check: + # Call to simulate() required to workaround showing daemon status (see #2813) + reactor.simulate() self.connectionmanager.show() def __on_disconnect(self):