mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
better model version detect and experimental pydantic v2
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -64,7 +64,11 @@ class Options():
|
||||
"""sets an option and calls its onchange callback, returning True if the option changed and False otherwise"""
|
||||
oldval = self.data.get(key, None)
|
||||
if oldval is None:
|
||||
oldval = self.data_labels[key].default
|
||||
if key in self.data_labels:
|
||||
oldval = self.data_labels[key].default
|
||||
else:
|
||||
log.warning(f'Settings: key={key} value={value} unknown')
|
||||
return False
|
||||
if oldval == value:
|
||||
return False
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user