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
+2 -2
View File
@@ -20,12 +20,12 @@ class Script(scripts.Script):
current_axis_options = []
def title(self):
return "X/Y/Z Grid"
return "XYZ Grid"
def ui(self, is_img2img):
self.current_axis_options = [x for x in axis_options if type(x) == AxisOption or x.is_img2img == is_img2img]
with gr.Row():
gr.HTML('<span">&nbsp X/Y/Z Grid</span><br>')
gr.HTML('<span">&nbsp XYZ Grid</span><br>')
with gr.Row():
with gr.Column():
with gr.Row(variant='compact'):