mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
Only save config if value changed
This commit is contained in:
parent
1e5462dccf
commit
47e062aa7e
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue