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:
@@ -221,7 +221,7 @@ class ServiceSettings:
|
|||||||
for f in fields(self):
|
for f in fields(self):
|
||||||
if f.name == "extra":
|
if f.name == "extra":
|
||||||
continue
|
continue
|
||||||
new_val = getattr(delta, f.name)
|
new_val = getattr(delta, f.name, NOT_GIVEN)
|
||||||
if not is_given(new_val):
|
if not is_given(new_val):
|
||||||
continue
|
continue
|
||||||
old_val = getattr(self, f.name)
|
old_val = getattr(self, f.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user