Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Sync notebookCrypto.enabled to config after enabling encrypted notebooks #18034

Danielc394c8730494
diff --git a/app/src/config/tabs/accessTab.ts b/app/src/config/tabs/accessTab.ts
index b553b22ddf..f3d10f830a 100644
--- a/app/src/config/tabs/accessTab.ts
+++ b/app/src/config/tabs/accessTab.ts
@@ -416,6 +416,7 @@ const mountEncryptedNotebook = (root: HTMLElement) => {
fetchPost("/api/notebook/getEncryptedNotebookStatus", {}, (response) => {
const enabled = response.data.enabled;
switchElement.checked = enabled;
+ window.siyuan.config.notebookCrypto.enabled = enabled;
actionsElement.classList.toggle("fn__none", !enabled);
importElement.classList.remove("fn__none");
});