This commit is contained in:
Vanessa 2022-10-25 00:26:57 +08:00
parent fa1e0601af
commit 0e050b607c

View file

@ -38,7 +38,7 @@ export const rename = (options: {
type: "notebook" | "file" type: "notebook" | "file"
range?: Range, range?: Range,
}) => { }) => {
if (window.siyuan.config.editor.readOnly) { if (window.siyuan.config.editor.readOnly || window.siyuan.config.readonly) {
return; return;
} }
const dialog = new Dialog({ const dialog = new Dialog({