mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 10:05:19 +00:00
Fix #842 some exceptions when disconnecting/reconnecting to daemon
This commit is contained in:
parent
b0e368c9ab
commit
c0f11fbae4
@ -56,7 +56,7 @@ class LabelMenu(gtk.MenuItem):
|
||||
def cb_labels(self, labels):
|
||||
for child in self.sub_menu.get_children():
|
||||
self.sub_menu.remove(child)
|
||||
for label in [NO_LABEL] + labels:
|
||||
for label in [NO_LABEL] + list(labels):
|
||||
item = gtk.MenuItem(label.replace("_","__"))
|
||||
item.connect("activate", self.on_select_label, label)
|
||||
self.sub_menu.append(item)
|
||||
|
@ -66,10 +66,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
|
||||
self.disable_plugins()
|
||||
|
||||
def update(self):
|
||||
# We call the plugins' update() method every second
|
||||
for plugin in self.plugins.values():
|
||||
if hasattr(plugin, "update"):
|
||||
plugin.update()
|
||||
pass
|
||||
|
||||
def _on_get_enabled_plugins(self, enabled_plugins):
|
||||
log.debug("Core has these plugins enabled: %s", enabled_plugins)
|
||||
|
Loading…
x
Reference in New Issue
Block a user