diff --git a/deluge/plugins/autoadd/autoadd/gtkui.py b/deluge/plugins/autoadd/autoadd/gtkui.py index 2dc770614..3fe74ca29 100644 --- a/deluge/plugins/autoadd/autoadd/gtkui.py +++ b/deluge/plugins/autoadd/autoadd/gtkui.py @@ -54,8 +54,7 @@ class OptionsDialog(): chk_ids = ["stop_at_ratio", "remove_at_ratio", "move_completed", "add_paused", "auto_managed", "queue_to_top"] def __init__(self): pass - - + def show(self, options={}, watchdir_id=None): self.glade = gtk.glade.XML(get_resource("autoadd_options.glade")) self.glade.signal_autoconnect({ @@ -207,7 +206,6 @@ class OptionsDialog(): options['download_location_toggle'] = self.glade.get_widget('download_location_toggle').get_active() options['label'] = self.glade.get_widget('label').get_text().lower() options['label_toggle'] = self.glade.get_widget('label_toggle').get_active() - for id in self.spin_ids: options[id] = self.glade.get_widget(id).get_value() @@ -256,6 +254,7 @@ class GtkUI(GtkPluginBase): sw.add(self.treeView) sw.show_all() component.get("Preferences").add_page("AutoAdd", self.glade.get_widget("prefs_box")) + self.on_show_prefs() def disable(self): @@ -331,7 +330,6 @@ class GtkUI(GtkPluginBase): client.autoadd.set_options(watchdir_id, watchdir) def on_show_prefs(self): - client.autoadd.get_config().addCallback(self.cb_get_config) def on_options_changed_event(self):