From 4e89d4c83f9fee28f0fed385d8ef8d12c319c571 Mon Sep 17 00:00:00 2001 From: Arda Aydin Date: Tue, 8 Sep 2026 21:57:52 +0300 Subject: [PATCH] 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 --- app_state.py | 2 +- main.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app_state.py b/app_state.py index f897b09..ee8a2b7 100644 --- a/app_state.py +++ b/app_state.py @@ -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 diff --git a/main.py b/main.py index 233bb87..756ff76 100644 --- a/main.py +++ b/main.py @@ -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: