mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
⚡ 获取 json 布局不应保存 scroll
This commit is contained in:
parent
45bfec7d2f
commit
ac269b4e1b
16 changed files with 74 additions and 83 deletions
|
|
@ -144,7 +144,7 @@ const dialogArrow = (app: App, element: HTMLElement, event: KeyboardEvent) => {
|
|||
openFileById({
|
||||
app,
|
||||
id: currentLiElement.getAttribute("data-node-id"),
|
||||
action: [Constants.CB_GET_SCROLL]
|
||||
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL]
|
||||
});
|
||||
}
|
||||
hideElements(["dialog"]);
|
||||
|
|
|
|||
|
|
@ -176,7 +176,6 @@ export const initWindow = async (app: App) => {
|
|||
/// #if !BROWSER
|
||||
const winOnClose = (close = false) => {
|
||||
exportLayout({
|
||||
reload: false,
|
||||
cb() {
|
||||
if (window.siyuan.config.appearance.closeButtonBehavior === 1 && !close) {
|
||||
// 最小化
|
||||
|
|
@ -191,7 +190,6 @@ export const initWindow = async (app: App) => {
|
|||
exitSiYuan();
|
||||
}
|
||||
},
|
||||
onlyData: false,
|
||||
errorExit: true
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue