mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 23:18:40 +00:00
add a comment and remove one of the OLD_CONFIG_KEYS
This commit is contained in:
parent
5c5a0712b0
commit
51b15c78a8
1 changed files with 3 additions and 1 deletions
|
@ -111,7 +111,7 @@ UI_CONFIG_KEYS = (
|
||||||
OLD_CONFIG_KEYS = (
|
OLD_CONFIG_KEYS = (
|
||||||
"port", "enabled_plugins", "base", "sidebar_show_zero",
|
"port", "enabled_plugins", "base", "sidebar_show_zero",
|
||||||
"sidebar_show_trackers", "show_keyword_search", "show_sidebar",
|
"sidebar_show_trackers", "show_keyword_search", "show_sidebar",
|
||||||
"cache_templates", "https"
|
"https"
|
||||||
)
|
)
|
||||||
|
|
||||||
def rpath(path):
|
def rpath(path):
|
||||||
|
@ -450,6 +450,8 @@ class DelugeWeb(component.Component):
|
||||||
super(DelugeWeb, self).__init__("DelugeWeb")
|
super(DelugeWeb, self).__init__("DelugeWeb")
|
||||||
self.config = configmanager.ConfigManager("web.conf", CONFIG_DEFAULTS)
|
self.config = configmanager.ConfigManager("web.conf", CONFIG_DEFAULTS)
|
||||||
|
|
||||||
|
# Check to see if a configuration from the web interface prior to 1.2
|
||||||
|
# exists and convert it over.
|
||||||
if os.path.exists(configmanager.get_config_dir("webui06.conf")):
|
if os.path.exists(configmanager.get_config_dir("webui06.conf")):
|
||||||
old_config = configmanager.ConfigManager("webui06.conf")
|
old_config = configmanager.ConfigManager("webui06.conf")
|
||||||
if old_config.config:
|
if old_config.config:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue