From ebd1dce81c161d6443fad26277d3740fa340fece Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 25 Sep 2023 09:26:20 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9195 --- app/src/protyle/header/openTitleMenu.ts | 35 ------------------------- 1 file changed, 35 deletions(-) diff --git a/app/src/protyle/header/openTitleMenu.ts b/app/src/protyle/header/openTitleMenu.ts index 7553563cb..bb0b211f0 100644 --- a/app/src/protyle/header/openTitleMenu.ts +++ b/app/src/protyle/header/openTitleMenu.ts @@ -188,41 +188,6 @@ export const openTitleMenu = (protyle: IProtyle, position: { } }).element); if (!protyle.disabled) { - window.siyuan.menus.menu.append(new MenuItem({ - label: window.siyuan.languages.replace, - accelerator: window.siyuan.config.keymap.general.replace.custom, - icon: "iconReplace", - async click() { - const searchPath = getDisplayName(protyle.path, false, true); - /// #if MOBILE - const pathResponse = await fetchSyncPost("/api/filetree/getHPathByPath", { - notebook: protyle.notebookId, - path: searchPath + ".sy" - }); - const localData = window.siyuan.storage[Constants.LOCAL_SEARCHDATA]; - popSearch(protyle.app, { - removed: localData.removed, - sort: localData.sort, - group: localData.group, - hasReplace: true, - method: localData.method, - hPath: pathPosix().join(getNotebookName(protyle.notebookId), pathResponse.data), - idPath: [pathPosix().join(protyle.notebookId, searchPath)], - k: localData.k, - r: localData.r, - page: 1, - types: Object.assign({}, localData.types) - }); - /// #else - openSearch({ - app: protyle.app, - hotkey: window.siyuan.config.keymap.general.replace.custom, - notebookId: protyle.notebookId, - searchPath - }); - /// #endif - } - }).element); transferBlockRef(protyle.block.rootID); } window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);