Browse Source

:art: https://github.com/siyuan-note/siyuan/issues/11302

Vanessa 1 year ago
parent
commit
11d2b0dbeb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/protyle/util/onGet.ts

+ 1 - 1
app/src/protyle/util/onGet.ts

@@ -207,7 +207,7 @@ const setHTML = (options: {
         }
         protyle.element.removeAttribute("disabled-forever");
         setReadonlyByConfig(protyle, updateReadonly);
-        if (options.action.includes(Constants.CB_GET_OPENNEW)) {
+        if (options.action.includes(Constants.CB_GET_OPENNEW) && window.siyuan.config.editor.readOnly) {
             updateReadonlyMethod(protyle.breadcrumb.element.parentElement.querySelector('.block__icon[data-type="readonly"]'), protyle);
         }
     }