Fix breakage when using a generic settings update (e.g. a TTSSettings) instead of a more specific one (e.g. a RimeTTSSettings). Both should work, assuming you're only changing fields present in the generic settings.

This commit is contained in:
Paul Kompfner
2026-02-24 18:05:27 -05:00
parent 6f0061ab96
commit d91c230b85

View File

@@ -221,7 +221,7 @@ class ServiceSettings:
for f in fields(self):
if f.name == "extra":
continue
new_val = getattr(delta, f.name)
new_val = getattr(delta, f.name, NOT_GIVEN)
if not is_given(new_val):
continue
old_val = getattr(self, f.name)