mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
parent
c768eb5b13
commit
c62cf10dc8
1 changed files with 0 additions and 11 deletions
|
@ -102,7 +102,6 @@ class Core(CorePluginBase):
|
||||||
core = self.plugin.get_core()
|
core = self.plugin.get_core()
|
||||||
self.config = ConfigManager("label.conf", defaults=CONFIG_DEFAULTS)
|
self.config = ConfigManager("label.conf", defaults=CONFIG_DEFAULTS)
|
||||||
self.core_cfg = ConfigManager("core.conf")
|
self.core_cfg = ConfigManager("core.conf")
|
||||||
#self.set_config_defaults()
|
|
||||||
|
|
||||||
#reduce typing, assigning some values to self...
|
#reduce typing, assigning some values to self...
|
||||||
self.torrents = core.torrents.torrents
|
self.torrents = core.torrents.torrents
|
||||||
|
@ -178,16 +177,6 @@ class Core(CorePluginBase):
|
||||||
self.clean_config()
|
self.clean_config()
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
def set_config_defaults(self):
|
|
||||||
#TODO : there is a deluge builtin for this, use it!
|
|
||||||
changed = False
|
|
||||||
for key, value in CONFIG_DEFAULTS.iteritems():
|
|
||||||
if not key in self.config.config:
|
|
||||||
self.config[key] = value
|
|
||||||
changed = True
|
|
||||||
if changed:
|
|
||||||
self.config.save()
|
|
||||||
|
|
||||||
def export_get_labels(self):
|
def export_get_labels(self):
|
||||||
return sorted(self.labels.keys())
|
return sorted(self.labels.keys())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue