fix: save mode when switching themes

pull/5447/head
Yue Yang 2022-05-26 11:03:51 +08:00 committed by Tienson Qin
parent 4a10f35e14
commit 6860dcb4f8
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@
(when-let [custom-theme (state/sub [:ui/custom-theme (keyword theme)])]
(when-let [url (:url custom-theme)]
(js/LSPluginCore.selectTheme (bean/->js custom-theme)
(bean/->js {:effect false :emit false}))
(bean/->js {:emit false}))
(state/set-state! :plugin/selected-theme url)))))
(defn setup-system-theme-effect!