From 71af3210bac01d2394c808d8e79b959096e669e6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 10 Mar 2023 10:00:16 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=B9=E8=BF=9B=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E5=8F=AA=E8=AF=BB=E6=A8=A1=E5=BC=8F=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/7615?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/conf.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index d59d0775b..788c06924 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -488,6 +488,10 @@ func NewLute() (ret *lute.Lute) { var confSaveLock = sync.Mutex{} func (conf *AppConf) Save() { + if util.ReadOnly { + return + } + confSaveLock.Lock() confSaveLock.Unlock()