From 3330e97d05d9e155c65f9acfc5f5d9d339863fe0 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 16 Jun 2017 00:28:14 +0100 Subject: [PATCH] [#3067|GTKUI] Fix the daemon stop button sensitivity --- deluge/ui/gtkui/connectionmanager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 30d86f45c..ba791ee15 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -232,13 +232,13 @@ class ConnectionManager(component.Component): self.builder.get_object('image_startdaemon').set_from_stock( gtk.STOCK_STOP, gtk.ICON_SIZE_MENU) self.builder.get_object('label_startdaemon').set_text_with_mnemonic(_('_Stop Daemon')) - self.builder.get_object('button_startdaemon').set_sensitive(True) + self.builder.get_object('button_startdaemon').set_sensitive(False) if status == 'Connected': # Display a disconnect button if we're connected to this host self.builder.get_object('button_connect').set_label(_('_Disconnect')) self.builder.get_object('button_removehost').set_sensitive(False) - # Can only stop daemon when connected to it - self.builder.get_object('button_startdaemon').set_sensitive(False) + # Currently can only stop daemon when connected to it + self.builder.get_object('button_startdaemon').set_sensitive(True) elif host in LOCALHOST: # If localhost we can start the dameon. self.builder.get_object('button_startdaemon').set_sensitive(True)