Module: deluge Branch: master Commit: c17b466bae27919b76051ffa5a7136cf82b91de6
Author: Chase Sterling <[email protected]> Date: Mon Sep 13 02:16:47 2010 -0400 Fix bug in AutoAdd plugin where watchdirs would not display in gtkui when first enabled. --- deluge/plugins/autoadd/autoadd/gtkui.py | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/deluge/plugins/autoadd/autoadd/gtkui.py b/deluge/plugins/autoadd/autoadd/gtkui.py index 2dc7706..3fe74ca 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): -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
