From 0c81e6ab424b7469a43bbcea2b55d35ff128ad67 Mon Sep 17 00:00:00 2001 From: llcc Date: Thu, 5 May 2022 11:32:34 +0800 Subject: [PATCH] default :mobile/show-tabbar? to nil --- src/main/frontend/components/sidebar.cljs | 5 ++++- src/main/frontend/state.cljs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/frontend/components/sidebar.cljs b/src/main/frontend/components/sidebar.cljs index 6180c703ae..df65b60128 100644 --- a/src/main/frontend/components/sidebar.cljs +++ b/src/main/frontend/components/sidebar.cljs @@ -451,7 +451,10 @@ [page :page])] (state/sidebar-add-block! current-repo db-id block-type nil))) (reset! sidebar-inited? true)))) - state)} + state) + :did-mount (fn [state] + (state/set-state! :mobile/show-tabbar? true) + state)} [] (let [default-home (get-default-home-if-valid) current-repo (state/sub :git/current-repo) diff --git a/src/main/frontend/state.cljs b/src/main/frontend/state.cljs index bcf59e905e..54322a77e3 100644 --- a/src/main/frontend/state.cljs +++ b/src/main/frontend/state.cljs @@ -144,7 +144,7 @@ ;; mobile :mobile/show-toolbar? false - :mobile/show-tabbar? true + :mobile/show-tabbar? false ;; plugin :plugin/enabled (and (util/electron?)