mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
d5dfb2a732
commit
a5f60614ae
2 changed files with 7 additions and 9 deletions
|
|
@ -309,11 +309,13 @@ export const initWindow = async (app: App) => {
|
||||||
const focus = urlObj.searchParams.get("focus") === "1";
|
const focus = urlObj.searchParams.get("focus") === "1";
|
||||||
fetchPost("/api/block/checkBlockExist", {id}, existResponse => {
|
fetchPost("/api/block/checkBlockExist", {id}, existResponse => {
|
||||||
if (existResponse.data) {
|
if (existResponse.data) {
|
||||||
openFileById({
|
fetchPost("/api/block/checkBlockFold", {id}, (foldResponse) => {
|
||||||
app,
|
openFileById({
|
||||||
id,
|
app,
|
||||||
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL],
|
id,
|
||||||
zoomIn: focus,
|
action: (foldResponse.data || focus) ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL],
|
||||||
|
zoomIn: foldResponse.data || focus
|
||||||
|
});
|
||||||
});
|
});
|
||||||
ipcRenderer.send(Constants.SIYUAN_CMD, "show");
|
ipcRenderer.send(Constants.SIYUAN_CMD, "show");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1708,10 +1708,6 @@ export class WYSIWYG {
|
||||||
activeBlur();
|
activeBlur();
|
||||||
hideKeyboardToolbar();
|
hideKeyboardToolbar();
|
||||||
/// #else
|
/// #else
|
||||||
if (aElement) {
|
|
||||||
window.open(aLink);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (event.shiftKey) {
|
if (event.shiftKey) {
|
||||||
openFileById({
|
openFileById({
|
||||||
app: protyle.app,
|
app: protyle.app,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue