Merge pull request #2720 from bauerj/config-skip-save

Only save config if value changed
This commit is contained in:
ThomasV 2017-08-10 17:56:38 +02:00 committed by GitHub
commit 6a984ab9b6
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ class SimpleConfig(PrintError):
return
with self.lock:
if key in self.user_config and self.user_config[key] == value:
return
self.user_config[key] = value
if save:
self.save_user_config()