fix: missing db persistency when creating new window via file menu (#5600)

* fix: missing db persistency when creating new window via file menu

* fix: remove the deprecated new window shortcut config

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
This commit is contained in:
Junyi Du
2022-06-08 18:05:55 +08:00
committed by GitHub
parent 97fc51ead6
commit c09fd7f70c
5 changed files with 22 additions and 18 deletions

View File

@@ -345,10 +345,6 @@
:ui/toggle-contents {:binding "alt+shift+c"
:fn ui-handler/toggle-contents!}
:ui/open-new-window {:binding "mod+n"
:inactive (not (util/electron?))
:fn #(state/pub-event! [:graph/open-new-window nil])}
:command/toggle-favorite {:binding "mod+shift+f"
:fn page-handler/toggle-favorite!}
@@ -525,7 +521,6 @@
:ui/toggle-help
:ui/toggle-theme
:ui/toggle-contents
:ui/open-new-window
:editor/open-file-in-default-app
:editor/open-file-in-directory
:editor/copy-current-file
@@ -581,8 +576,7 @@
:go/tomorrow
:go/next-journal
:go/prev-journal
:go/keyboard-shortcuts
:ui/open-new-window]
:go/keyboard-shortcuts]
:shortcut.category/block-editing
[:editor/backspace