Palette: show only kits declared in the app's schema
The sidebar palette combo now lists kits from the open file's schema rather than every kit installed in Sedona home, with their resolved version labels. Falls back to all installed kits when no file is open. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it.
|
||||
import configparser
|
||||
import os
|
||||
|
||||
VERSION = "0.0.0.060"
|
||||
VERSION = "0.0.0.061"
|
||||
PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties")
|
||||
DEFAULT_GRID_SIZE = 10
|
||||
DEFAULT_ADD_TIMESTAMP = True
|
||||
|
||||
@@ -2100,11 +2100,12 @@ def populate_palette_types(event=None):
|
||||
|
||||
|
||||
def refresh_palette_kits():
|
||||
"""Reloads the kit list from Sedona home. Also called after Preferences changes it."""
|
||||
"""Reloads the kit list, showing only kits declared in the app's schema."""
|
||||
global palette_kit_names
|
||||
|
||||
palette.invalidate()
|
||||
palette_kit_names = palette.list_kits()
|
||||
declared = list(app_state.active_schema_kits.keys())
|
||||
palette_kit_names = sorted(declared) if declared else palette.list_kits()
|
||||
|
||||
labels = []
|
||||
for kit_name in palette_kit_names:
|
||||
|
||||
Reference in New Issue
Block a user