From 0e050b607c7cbbc191463eefbd62802bf40c676b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 25 Oct 2022 00:26:57 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6340 --- app/src/editor/rename.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/editor/rename.ts b/app/src/editor/rename.ts index 04ac46308..55e509f24 100644 --- a/app/src/editor/rename.ts +++ b/app/src/editor/rename.ts @@ -38,7 +38,7 @@ export const rename = (options: { type: "notebook" | "file" range?: Range, }) => { - if (window.siyuan.config.editor.readOnly) { + if (window.siyuan.config.editor.readOnly || window.siyuan.config.readonly) { return; } const dialog = new Dialog({