Skip to content

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

:bug: Close the menu before opening the built-in cover dialog https://github.com/siyuan-note/siyuan/issues/18527

Daniel296ee42f957a
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts
index 2ebf5fbe1f..147d6b87bc 100644
--- a/app/src/protyle/header/Background.ts
+++ b/app/src/protyle/header/Background.ts
@@ -269,6 +269,7 @@ export class Background {
event.stopPropagation();
break;
} else if (type === "show-random" && !protyle.disabled) {
+ window.siyuan.menus.menu.remove();
// 内置题头图对话框:优先展示封面图片,加载失败时回退到 CSS 图案
const dialog = new Dialog({
title: window.siyuan.languages.builtIn,