This commit is contained in:
2026-01-12 20:10:18 -08:00
parent 2870abf4de
commit 749ffb7e34
3 changed files with 88 additions and 6 deletions

View File

@@ -450,12 +450,15 @@ class ConfigModal(ModalScreen):
elif bid == "save-btn":
if not self.validate_current_editor():
return
self.save_all()
self.notify("Configuration saved!")
# Return to the main list view within the current category
self.editing_item_name = None
self.editing_item_type = None
self.refresh_view()
try:
self.save_all()
self.notify("Configuration saved!")
# Return to the main list view within the current category
self.editing_item_name = None
self.editing_item_type = None
self.refresh_view()
except Exception as exc:
self.notify(f"Save failed: {exc}", severity="error", timeout=10)
elif bid in self._button_id_map:
action, itype, name = self._button_id_map[bid]
if action == "edit":