mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
This commit is contained in:
parent
08b8f16caa
commit
75526007d7
3 changed files with 22 additions and 12 deletions
|
|
@ -25,6 +25,7 @@ import {hasClosestByTag} from "../protyle/util/hasClosest";
|
|||
import {deleteFiles} from "../editor/deleteFile";
|
||||
import {getDockByType} from "../layout/util";
|
||||
import {Files} from "../layout/dock/Files";
|
||||
import {openNewWindowById} from "../window/openNewWindow";
|
||||
|
||||
const initMultiMenu = (selectItemElements: NodeListOf<Element>) => {
|
||||
const fileItemElement = Array.from(selectItemElements).find(item => {
|
||||
|
|
@ -342,6 +343,15 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
|
|||
}
|
||||
});
|
||||
}
|
||||
/// #if !BROWSER
|
||||
openSubmenus.push({
|
||||
label: window.siyuan.languages.openByNewWindow,
|
||||
icon: "iconOpenWindow",
|
||||
click() {
|
||||
openNewWindowById(id);
|
||||
}
|
||||
})
|
||||
/// #endif
|
||||
openSubmenus.push({type: "separator"});
|
||||
openSubmenus.push({
|
||||
icon: "iconPreview",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue