mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Iterate over values not keys (fixes autoadd error)
This commit is contained in:
parent
fc6f9ebc3b
commit
9c4cd86492
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class Core(CorePluginBase):
|
||||||
self.core_cfg['autoadd_enable'] = False
|
self.core_cfg['autoadd_enable'] = False
|
||||||
self.core_cfg.save()
|
self.core_cfg.save()
|
||||||
# Check if core autoadd folder is already added in plugin
|
# Check if core autoadd folder is already added in plugin
|
||||||
for watchdir in self.watchdirs:
|
for watchdir in self.watchdirs.itervalues():
|
||||||
if os.path.abspath(self.core_cfg['autoadd_location']) == watchdir['abspath']:
|
if os.path.abspath(self.core_cfg['autoadd_location']) == watchdir['abspath']:
|
||||||
watchdir['enabled'] = True
|
watchdir['enabled'] = True
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue