mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-02 16:15:32 +00:00
Deluge will now default to 'gtk' instead of defaulting to last used UI.
This commit is contained in:
parent
c266bd489f
commit
bbddd29d4b
1 changed files with 6 additions and 5 deletions
|
@ -36,7 +36,7 @@ import deluge.configmanager
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
|
||||||
DEFAULT_PREFS = {
|
DEFAULT_PREFS = {
|
||||||
"selected_ui": "gtk"
|
"default_ui": "gtk"
|
||||||
}
|
}
|
||||||
|
|
||||||
class UI:
|
class UI:
|
||||||
|
@ -48,10 +48,11 @@ class UI:
|
||||||
|
|
||||||
config = deluge.configmanager.ConfigManager("ui.conf", DEFAULT_PREFS)
|
config = deluge.configmanager.ConfigManager("ui.conf", DEFAULT_PREFS)
|
||||||
|
|
||||||
if options.ui != None:
|
if not options.ui:
|
||||||
config["selected_ui"] = options.ui
|
selected_ui = config["default_ui"]
|
||||||
|
else:
|
||||||
selected_ui = config["selected_ui"]
|
selected_ui = options.ui
|
||||||
|
|
||||||
config.save()
|
config.save()
|
||||||
del config
|
del config
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue