fix(gui): fix typo current_cat_tools -> curr_cat_tools in tool preset manager
This commit is contained in:
+2
-2
@@ -1790,11 +1790,11 @@ class App:
|
||||
if tool: curr_cat_tools.remove(tool)
|
||||
imgui.same_line();
|
||||
if imgui.radio_button(f"Auto##{cat_name}_{tool_name}", mode == "auto"):
|
||||
if not tool: tool = models.Tool(name=tool_name, approval="auto"); current_cat_tools.append(tool)
|
||||
if not tool: tool = models.Tool(name=tool_name, approval="auto"); curr_cat_tools.append(tool)
|
||||
else: tool.approval = "auto"
|
||||
imgui.same_line();
|
||||
if imgui.radio_button(f"Ask##{cat_name}_{tool_name}", mode == "ask"):
|
||||
if not tool: tool = models.Tool(name=tool_name, approval="ask"); current_cat_tools.append(tool)
|
||||
if not tool: tool = models.Tool(name=tool_name, approval="ask"); curr_cat_tools.append(tool)
|
||||
else: tool.approval = "ask"
|
||||
imgui.end_table()
|
||||
imgui.tree_pop()
|
||||
|
||||
Reference in New Issue
Block a user