mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🐛 Under certain circumstances, main.js throws an error upon startup https://github.com/siyuan-note/siyuan/issues/17048
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -349,8 +349,7 @@ const initMainWindow = () => {
|
||||
|
||||
writeLog("window stat [x=" + windowState.x + ", y=" + windowState.y + ", width=" + windowState.width + ", height=" + windowState.height + "], " +
|
||||
"default [x=0, y=0, width=" + defaultWidth + ", height=" + defaultHeight + "], " +
|
||||
"old [x=" + oldWindowState.x + ", y=" + oldWindowState.y + ", width=" + oldWindowState.width + ", height=" + oldWindowState.height + "], " +
|
||||
"workArea [width=" + workArea.width + ", height=" + workArea.height + "]");
|
||||
"old [x=" + oldWindowState.x + ", y=" + oldWindowState.y + ", width=" + oldWindowState.width + ", height=" + oldWindowState.height + "]");
|
||||
|
||||
let resetToCenter = false;
|
||||
let x = windowState.x;
|
||||
|
||||
Reference in New Issue
Block a user