mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-08-18 09:09:51 +00:00
Only mark config file to modified if actually modified
Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
@@ -114,7 +114,7 @@ class Config:
|
|||||||
"""
|
"""
|
||||||
if name in self.settings:
|
if name in self.settings:
|
||||||
setting = self.settings[name]
|
setting = self.settings[name]
|
||||||
if setting.value != value or not setting.active:
|
if (value is not None and setting.value != value) or not setting.active:
|
||||||
setting.configfile.modified = True
|
setting.configfile.modified = True
|
||||||
if value is not None:
|
if value is not None:
|
||||||
setting.value = value
|
setting.value = value
|
||||||
|
|||||||
Reference in New Issue
Block a user