mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🐛 Hiding the main interface and then opening it from the taskbar icon will cause the interface to hang Fix https://github.com/siyuan-note/siyuan/issues/8489
This commit is contained in:
parent
c392fb0b11
commit
a2ff4d753b
1 changed files with 2 additions and 8 deletions
|
|
@ -307,10 +307,7 @@ const boot = () => {
|
|||
if (currentWindow.isMinimized()) {
|
||||
currentWindow.restore();
|
||||
}
|
||||
if (!currentWindow.isVisible()) {
|
||||
currentWindow.show();
|
||||
}
|
||||
currentWindow.focus();
|
||||
currentWindow.show();
|
||||
setTimeout(() => { // 等待界面js执行完毕
|
||||
writeLog(siyuanOpenURL);
|
||||
currentWindow.webContents.send("siyuan-openurl", siyuanOpenURL);
|
||||
|
|
@ -389,10 +386,7 @@ const showWindow = (wnd) => {
|
|||
if (wnd.isMinimized()) {
|
||||
wnd.restore();
|
||||
}
|
||||
if (!wnd.isVisible()) {
|
||||
wnd.show();
|
||||
}
|
||||
wnd.focus();
|
||||
wnd.show();
|
||||
};
|
||||
|
||||
const initKernel = (workspace, port, lang) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue