fix: persisting db before opening new window

This commit is contained in:
Junyi Du
2022-03-11 19:52:50 +08:00
committed by Tienson Qin
parent 59457f9b7d
commit d425a60038
5 changed files with 50 additions and 40 deletions

View File

@@ -10,6 +10,7 @@
[frontend.handler.journal :as journal-handler]
[frontend.handler.search :as search-handler]
[frontend.handler.ui :as ui-handler]
[frontend.handler.repo :as repo-handler]
[frontend.handler.plugin :as plugin-handler]
[frontend.modules.shortcut.before :as m]
[frontend.state :as state]
@@ -416,7 +417,7 @@
:ui/open-new-window (when (util/electron?)
{:desc "Open another window"
:binding "mod+n"
:fn ui-handler/open-new-window!})
:fn repo-handler/open-new-window!})
:command/toggle-favorite {:desc "Add to/remove from favorites"
:binding "mod+shift+f"