Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/11942

Vanessa15b3cad41ecc
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 325d89067f..bf24e1ebc8 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -866,10 +866,7 @@ export class Gutter {
return;
}
hideElements(["util", "toolbar", "hint"], protyle);
- const menu = new Menu("gutter");
- if (menu.isOpen) {
- return;
- }
+ window.siyuan.menus.menu.remove();
if (isMobile()) {
activeBlur();
}
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index e91319d881..16a97e4ea9 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -255,10 +255,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
});
}
- const menu = new Menu("av-row-menu");
- if (menu.isOpen) {
- return true;
- }
+ const menu = new Menu();
rowElement.classList.add("av__row--select");
rowElement.querySelector(".av__firstcol use").setAttribute("xlink:href", "#iconCheck");
const rowElements = blockElement.querySelectorAll(".av__row--select:not(.av__row--header)");