♻️ context

This commit is contained in:
Vanessa 2022-08-07 09:26:08 +08:00
parent 3ef5731cb9
commit 65821e57de
22 changed files with 50 additions and 45 deletions

View file

@ -67,7 +67,7 @@ export const newFile = (notebookId?: string, currentPath?: string, open?: boolea
}, () => {
/// #if !MOBILE
if (open) {
openFileById({id, action: [Constants.CB_GET_HL]});
openFileById({id, action: [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]});
}
/// #endif
});

View file

@ -342,7 +342,7 @@ const initWindow = () => {
}
openFileById({
id: url.substr(16, 22),
action: [Constants.CB_GET_FOCUS],
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],
zoomIn: getSearch("focus", url) === "1"
});
});