diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts index e78cdcb46..e5f727f71 100644 --- a/app/src/protyle/breadcrumb/index.ts +++ b/app/src/protyle/breadcrumb/index.ts @@ -447,7 +447,7 @@ export class Breadcrumb { type: "submenu", submenu: [{ iconHTML: "", - current: isCustomReadonly === "true", + current: !isCustomReadonly || isCustomReadonly === "true", label: window.siyuan.languages.enable, click() { fetchPost("/api/attr/setBlockAttrs", { @@ -465,16 +465,6 @@ export class Breadcrumb { attrs: {[Constants.CUSTOM_SY_READONLY]: "false"} }); } - }, { - iconHTML: "", - current: !isCustomReadonly, - label: window.siyuan.languages.default, - click() { - fetchPost("/api/attr/setBlockAttrs", { - id: protyle.block.rootID, - attrs: {[Constants.CUSTOM_SY_READONLY]: ""} - }); - } }] }).element); }