From bbddd29d4b98bbe0f17d769e033427ec7c9c81d5 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 15 Jul 2008 19:59:09 +0000 Subject: [PATCH] Deluge will now default to 'gtk' instead of defaulting to last used UI. --- deluge/ui/ui.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/deluge/ui/ui.py b/deluge/ui/ui.py index 4ab30461c..463fd33ee 100644 --- a/deluge/ui/ui.py +++ b/deluge/ui/ui.py @@ -36,7 +36,7 @@ import deluge.configmanager from deluge.log import LOG as log DEFAULT_PREFS = { - "selected_ui": "gtk" + "default_ui": "gtk" } class UI: @@ -48,10 +48,11 @@ class UI: config = deluge.configmanager.ConfigManager("ui.conf", DEFAULT_PREFS) - if options.ui != None: - config["selected_ui"] = options.ui - - selected_ui = config["selected_ui"] + if not options.ui: + selected_ui = config["default_ui"] + else: + selected_ui = options.ui + config.save() del config