Only mark config file to modified if actually modified

Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
Gabor Mezei
2024-09-18 16:46:52 +02:00
parent b1ec5fd541
commit ebb46d68c2
+1 -1
View File
@@ -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