13 lines
930 B
TOML
13 lines
930 B
TOML
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.
|
|
"""
|