commit 6a984ab9b6f02ca412dd636ccf3e226e48e1ac0c
parent d4ab8de91db741e4006b67e183e602206b5fb519
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 10 Aug 2017 17:56:38 +0200
Merge pull request #2720 from bauerj/config-skip-save
Only save config if value changed
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/simple_config.py b/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()