fix xyz grid restore

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-10-08 13:16:47 -04:00
parent a722ed30d9
commit d9e0af0829
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -457,6 +457,9 @@ class ScriptRunner:
def init_field(title):
if title == 'None': # called when an initial value is set from ui-config.json to show script's UI components
return
if title not in self.titles:
errors.log.error(f'Script not found: {title}')
return
script_index = self.titles.index(title)
self.selectable_scripts[script_index].group.visible = True