Palette: no misleading message when no file is open

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-08 22:03:03 +03:00
co-authored by Claude Opus 4.6
parent 9944d93f74
commit 13b637a8b9
2 changed files with 7 additions and 5 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.062" VERSION = "0.0.0.063"
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
+6 -4
View File
@@ -2118,10 +2118,12 @@ def refresh_palette_kits():
palette_tree.delete(item) palette_tree.delete(item)
if not palette_kit_names: if not palette_kit_names:
palette_status.config( if app_state.xml_root_element is None:
text="No kits found — check Sedona home" if app_state.SEDONA_HOME palette_status.config(text="")
else "Set Sedona home in Preferences" elif not app_state.SEDONA_HOME:
) palette_status.config(text="Set Sedona home in Preferences")
else:
palette_status.config(text="No kits found — check Sedona home")
palette_kit_var.set("") palette_kit_var.set("")
return return