From 29f72a244feb09e10ceb2bf6dd8a9ffc73f39770 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 10 Jun 2009 05:38:59 +0000 Subject: [PATCH] Remove statusbar icon when disconnected from daemon --- deluge/plugins/scheduler/scheduler/gtkui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deluge/plugins/scheduler/scheduler/gtkui.py b/deluge/plugins/scheduler/scheduler/gtkui.py index c0521853d..613bea726 100644 --- a/deluge/plugins/scheduler/scheduler/gtkui.py +++ b/deluge/plugins/scheduler/scheduler/gtkui.py @@ -170,6 +170,10 @@ class GtkUI(GtkPluginBase): def disable(self): component.get("Preferences").remove_page("Scheduler") + # Remove status item + component.get("StatusBar").remove_item(self.status_item) + del self.status_item + component.get("PluginManager").deregister_hook("on_apply_prefs", self.on_apply_prefs) component.get("PluginManager").deregister_hook("on_show_prefs", self.on_show_prefs)