Yue Yang 2 年之前
父节点
当前提交
a6f6b0abae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/ui.cljs

+ 1 - 1
src/main/frontend/ui.cljs

@@ -368,7 +368,7 @@
     (when-let [custom-theme (state/sub [:ui/custom-theme (keyword theme)])]
       ;; If the name is nil, the user has not set a custom theme (initially {:mode light/dark}).
       ;; The url is not used because the default theme does not have an url.
-      (when-let [name (:name custom-theme)]
+      (if (some? (:name custom-theme))
         (js/LSPluginCore.selectTheme (bean/->js custom-theme)
                                      (bean/->js {:emit false}))
         (state/set-state! :plugin/selected-theme (:url custom-theme))))))