From 52c6cce6b323e964c269f84e2230c152529d1cab Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Mon, 17 Nov 2008 19:52:02 +0000 Subject: [PATCH] fix gtk labels --- deluge/plugins/label/label/core.py | 4 ++-- deluge/plugins/label/label/webui.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deluge/plugins/label/label/core.py b/deluge/plugins/label/label/core.py index 25edd54fb..752bf0a0f 100644 --- a/deluge/plugins/label/label/core.py +++ b/deluge/plugins/label/label/core.py @@ -53,7 +53,6 @@ LABEL = "label" CONFIG_DEFAULTS = { "torrent_labels":{}, #torrent_id:label_id "labels":{}, #label_id:{name:value} - "auto_add_trackers":[] } CORE_OPTIONS = ["auto_add_trackers"] @@ -73,7 +72,8 @@ OPTIONS_DEFAULTS = { "apply_move_completed":False, "move_completed":False, "move_completed_path":"", - "auto_add":False + "auto_add":False, + "auto_add_trackers":[] } NO_LABEL = "No Label" diff --git a/deluge/plugins/label/label/webui.py b/deluge/plugins/label/label/webui.py index 978a98e65..721018c85 100644 --- a/deluge/plugins/label/label/webui.py +++ b/deluge/plugins/label/label/webui.py @@ -49,8 +49,8 @@ class options: @api.deco.deluge_page def GET(self, label_id): - options_form = OptionsForm() - + options = sclient.label_get_options(label_id) + options_form = OptionsForm(options) return api.render.label.options(label_id, options_form) class add: