Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

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