Palette: no misleading message 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.062"
|
||||
VERSION = "0.0.0.063"
|
||||
PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties")
|
||||
DEFAULT_GRID_SIZE = 10
|
||||
DEFAULT_ADD_TIMESTAMP = True
|
||||
|
||||
@@ -2118,10 +2118,12 @@ def refresh_palette_kits():
|
||||
palette_tree.delete(item)
|
||||
|
||||
if not palette_kit_names:
|
||||
palette_status.config(
|
||||
text="No kits found — check Sedona home" if app_state.SEDONA_HOME
|
||||
else "Set Sedona home in Preferences"
|
||||
)
|
||||
if app_state.xml_root_element is None:
|
||||
palette_status.config(text="")
|
||||
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("")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user