Skip to content

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

:bug: Improve outline dnd https://github.com/siyuan-note/siyuan/issues/10828

Daniel52e1dd8b068f
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 5cbf26dcf1..08f5f4e67e 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -35,9 +35,11 @@ const updateTitle = (rootID: string, tab: Tab, protyle?: IProtyle) => {
});
};
-export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRootIDs: string[] }) => {
- hideMessage();
- /// #if MOBILE
+export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRootIDs: string[] }, hideMsg = true) => {
+ if (hideMsg) {
+ hideMessage();
+ }
+ /// #if MOBILE
if (window.siyuan.mobile.popEditor) {
if (data.removeRootIDs.includes(window.siyuan.mobile.popEditor.protyle.block.rootID)) {
hideElements(["dialog"]);
diff --git a/app/src/index.ts b/app/src/index.ts
index 585686d178..90e9766c26 100644
--- a/app/src/index.ts
+++ b/app/src/index.ts
@@ -16,7 +16,8 @@ import {
processSync,
progressBackgroundTask,
progressLoading,
- progressStatus, reloadSync,
+ progressStatus,
+ reloadSync,
setTitle,
transactionError
} from "./dialog/processSystem";
@@ -66,7 +67,7 @@ export class App {
reloadSync(this, data.data);
break;
case "reloaddoc":
- reloadSync(this, {upsertRootIDs: [data.data], removeRootIDs: []});
+ reloadSync(this, {upsertRootIDs: [data.data], removeRootIDs: []}, false);
break;
case "readonly":
window.siyuan.config.editor.readOnly = data.data;