Browse Source

fix: Shortcut Tooltip Setting Changes Automatically

close #3247
Tienson Qin 4 years ago
parent
commit
12f0d41f93
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/state.cljs

+ 3 - 1
src/main/frontend/state.cljs

@@ -77,7 +77,9 @@
                               false)
       ;; remember scroll positions of visited paths
       :ui/paths-scroll-positions {}
-      :ui/shortcut-tooltip? (or (storage/get :ui/shortcut-tooltip?) true)
+      :ui/shortcut-tooltip? (if (false? (storage/get :ui/shortcut-tooltip?))
+                              false
+                              true)
 
       :document/mode? document-mode?