fix(gui): Ensure all tools are visible in Tool Preset Manager
This commit is contained in:
12
scripts/tasks/fix_tool_preset_modal.toml
Normal file
12
scripts/tasks/fix_tool_preset_modal.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
prompt = """
|
||||
In src/gui_2.py, modify 'App._render_tool_preset_manager_modal':
|
||||
1. Instead of iterating over 'self._editing_tool_preset_categories.items()', iterate over 'models.DEFAULT_TOOL_CATEGORIES.items()'.
|
||||
2. For each category and each tool in that category:
|
||||
- Check if the tool exists in 'self._editing_tool_preset_categories[cat_name]'.
|
||||
- Determine the current mode: "disabled" (not present), "auto", or "ask".
|
||||
- Show three radio buttons: "Disabled", "Auto", "Ask".
|
||||
- If "Disabled" is selected, remove the tool from 'self._editing_tool_preset_categories[cat_name]'.
|
||||
- If "Auto" or "Ask" is selected, update 'self._editing_tool_preset_categories[cat_name][tool_name]' accordingly.
|
||||
- Ensure 'self._editing_tool_preset_categories' is initialized with nested dicts for all categories from 'models.DEFAULT_TOOL_CATEGORIES' when 'New Tool Preset' is clicked or a preset is selected.
|
||||
Use 1-space indentation.
|
||||
"""
|
||||
Reference in New Issue
Block a user