Browse Source

fix: close setting when unmount setting

Weihua Lu 4 years ago
parent
commit
e35b914aee
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main/frontend/components/settings.cljs

+ 4 - 0
src/main/frontend/components/settings.cljs

@@ -541,6 +541,10 @@
   {:will-mount
    (fn [state]
      (state/load-app-user-cfgs)
+     state)
+   :will-unmount
+   (fn [state]
+     (state/close-settings!)
      state)}
   rum/reactive
   [state]