This commit is contained in:
parent
06a069607c
commit
6a6df4708d
3 changed files with 3 additions and 5 deletions
|
@ -518,9 +518,6 @@ export class Breadcrumb {
|
|||
}).element);
|
||||
}
|
||||
/// #endif
|
||||
if (!protyle.disabled) {
|
||||
transferBlockRef(protyle.block.rootID);
|
||||
}
|
||||
if (protyle?.app?.plugins) {
|
||||
emitOpenMenu({
|
||||
plugins: protyle.app.plugins,
|
||||
|
|
|
@ -287,7 +287,6 @@ export class Title {
|
|||
}, Constants.TIMEOUT_INPUT);
|
||||
}
|
||||
|
||||
|
||||
public setTitle(title: string) {
|
||||
if (code160to32(title) !== code160to32(this.editElement.textContent)) {
|
||||
this.editElement.textContent = title === "Untitled" ? "" : title;
|
||||
|
|
|
@ -26,6 +26,7 @@ import {openSearch} from "../../search/spread";
|
|||
import {openDocHistory} from "../../history/doc";
|
||||
import {openNewWindowById} from "../../window/openNewWindow";
|
||||
import {genImportMenu} from "../../menus/navigation";
|
||||
import {transferBlockRef} from "../../menus/block";
|
||||
|
||||
export const openTitleMenu = (protyle: IProtyle, position: {
|
||||
x: number
|
||||
|
@ -222,6 +223,7 @@ export const openTitleMenu = (protyle: IProtyle, position: {
|
|||
/// #endif
|
||||
}
|
||||
}).element);
|
||||
transferBlockRef(protyle.block.rootID);
|
||||
}
|
||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
/// #if !BROWSER
|
||||
|
@ -262,7 +264,7 @@ export const openTitleMenu = (protyle: IProtyle, position: {
|
|||
separatorPosition: "top",
|
||||
});
|
||||
}
|
||||
window.siyuan.menus.menu.append(new MenuItem({ type: "separator" }).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
iconHTML: Constants.ZWSP,
|
||||
type: "readonly",
|
||||
|
|
Loading…
Add table
Reference in a new issue