diff --git a/src/gui_2.py b/src/gui_2.py index 87b328a..79d6407 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -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()