Use a copy of the build settings for the build settings dialog (#2350)

This commit is contained in:
Veronica Berglyd Olsen
2025-05-20 21:16:34 +02:00
parent e7e0d6bf2b
commit 6b4aac0235
2 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -390,7 +390,7 @@ class BuildSettings:
def setValue(self, key: str, value: T_BuildValue) -> None:
"""Set a specific value for a build setting."""
if (d := SETTINGS_TEMPLATE.get(key)) and len(d) == 2 and isinstance(value, d[0]):
self._changed = value != self._settings[key]
self._changed |= (value != self._settings[key])
self._settings[key] = value
return