fix(regression): 2nd modal doesn't close for remove graph cmd

or any commands using dialog-select!. Modal used to display search
commands didn't close after selecting an item
This commit is contained in:
Gabriel Horner
2024-10-14 14:01:05 -04:00
parent c7469efbe1
commit 500da0d7e1
2 changed files with 5 additions and 4 deletions

View File

@@ -484,6 +484,7 @@
(let [command (some-> state state->highlighted-item :source-command)]
(when-let [action (:action command)]
(action)
(prn :trigger (:id command))
(when-not (contains? #{:graph/open :graph/remove :dev/replace-graph-with-db-file :ui/toggle-settings :go/flashcards} (:id command))
(shui/dialog-close! :ls-dialog-cmdk)))))