mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-12 23:21:23 +08:00
🐛 Improve outline dnd https://github.com/siyuan-note/siyuan/issues/10828
This commit is contained in:
parent
4a7b21f8ad
commit
52e1dd8b06
@ -35,8 +35,10 @@ const updateTitle = (rootID: string, tab: Tab, protyle?: IProtyle) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRootIDs: string[] }) => {
|
export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRootIDs: string[] }, hideMsg = true) => {
|
||||||
|
if (hideMsg) {
|
||||||
hideMessage();
|
hideMessage();
|
||||||
|
}
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
if (window.siyuan.mobile.popEditor) {
|
if (window.siyuan.mobile.popEditor) {
|
||||||
if (data.removeRootIDs.includes(window.siyuan.mobile.popEditor.protyle.block.rootID)) {
|
if (data.removeRootIDs.includes(window.siyuan.mobile.popEditor.protyle.block.rootID)) {
|
||||||
|
@ -16,7 +16,8 @@ import {
|
|||||||
processSync,
|
processSync,
|
||||||
progressBackgroundTask,
|
progressBackgroundTask,
|
||||||
progressLoading,
|
progressLoading,
|
||||||
progressStatus, reloadSync,
|
progressStatus,
|
||||||
|
reloadSync,
|
||||||
setTitle,
|
setTitle,
|
||||||
transactionError
|
transactionError
|
||||||
} from "./dialog/processSystem";
|
} from "./dialog/processSystem";
|
||||||
@ -66,7 +67,7 @@ export class App {
|
|||||||
reloadSync(this, data.data);
|
reloadSync(this, data.data);
|
||||||
break;
|
break;
|
||||||
case "reloaddoc":
|
case "reloaddoc":
|
||||||
reloadSync(this, {upsertRootIDs: [data.data], removeRootIDs: []});
|
reloadSync(this, {upsertRootIDs: [data.data], removeRootIDs: []}, false);
|
||||||
break;
|
break;
|
||||||
case "readonly":
|
case "readonly":
|
||||||
window.siyuan.config.editor.readOnly = data.data;
|
window.siyuan.config.editor.readOnly = data.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user