Remove statusbar icon when disconnected from daemon

This commit is contained in:
Andrew Resch 2009-06-10 05:38:59 +00:00
parent 5cdb5f41e4
commit 29f72a244f
1 changed files with 4 additions and 0 deletions

View File

@ -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)