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:
2026-09-08 21:57:52 +03:00
co-authored by Claude Opus 4.6
parent edd1c20093
commit 4e89d4c83f
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it.
import configparser import configparser
import os 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") PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties")
DEFAULT_GRID_SIZE = 10 DEFAULT_GRID_SIZE = 10
DEFAULT_ADD_TIMESTAMP = True DEFAULT_ADD_TIMESTAMP = True
+3 -2
View File
@@ -2100,11 +2100,12 @@ def populate_palette_types(event=None):
def refresh_palette_kits(): 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 global palette_kit_names
palette.invalidate() 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 = [] labels = []
for kit_name in palette_kit_names: for kit_name in palette_kit_names: