🐛Alt+M 后隐藏窗口,再次按 Alt+M 显示窗口后会卡住不能编辑 https://github.com/siyuan-note/siyuan/issues/8456 Fix https://github.com/siyuan-note/siyuan/issues/8456

This commit is contained in:
Daniel 2023-06-05 20:12:47 +08:00
parent 118db38db4
commit 9a8ebd536d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -766,9 +766,7 @@ app.whenReady().then(() => {
const mainWindow = item.browserWindow; const mainWindow = item.browserWindow;
if (mainWindow.isMinimized()) { if (mainWindow.isMinimized()) {
mainWindow.restore(); mainWindow.restore();
if (!mainWindow.isVisible()) { mainWindow.show(); // 按 `Alt+M` 后隐藏窗口,再次按 `Alt+M` 显示窗口后会卡住不能编辑 https://github.com/siyuan-note/siyuan/issues/8456
mainWindow.show();
}
} else { } else {
if (mainWindow.isVisible()) { if (mainWindow.isVisible()) {
if (1 === workspaces.length) { // 改进 `Alt+M` 激活窗口 https://github.com/siyuan-note/siyuan/issues/7258 if (1 === workspaces.length) { // 改进 `Alt+M` 激活窗口 https://github.com/siyuan-note/siyuan/issues/7258