Browse Source

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

Only save config if value changed
2.9.x
ThomasV 7 years ago
committed by GitHub
parent
commit
6a984ab9b6
  1. 2
      lib/simple_config.py

2
lib/simple_config.py

@ -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()

Loading…
Cancel
Save