Small refactor

This commit is contained in:
rien333 2018-03-22 03:44:24 +01:00
parent 7b7faa9f66
commit 764e79e505

View File

@ -269,10 +269,7 @@ class YamlConfig(QObject):
if old in settings:
settings[new] = {}
for scope, val in settings[old].items():
if val:
settings[new][scope] = True
else:
settings[new][scope] = False
settings[new][scope] = val
del settings[old]
self._mark_changed()