feat: add util persist-var

This commit is contained in:
rcmerci
2021-07-15 15:27:17 +08:00
committed by Tienson Qin
parent 1571b9fce1
commit 6dafc0af0c
4 changed files with 125 additions and 38 deletions

View File

@@ -1396,3 +1396,9 @@
(defn get-favorites-name
[]
(or (:name/favorites (get-config)) "Favorites"))
(defn add-watch-state [key f]
(add-watch state key f))
(defn remove-watch-state [key]
(remove-watch state key))