mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🐛 Save conf lock
This commit is contained in:
parent
abd61108d8
commit
6fa4245819
1 changed files with 1 additions and 1 deletions
|
|
@ -554,7 +554,7 @@ func (conf *AppConf) Save() {
|
||||||
}
|
}
|
||||||
|
|
||||||
confSaveLock.Lock()
|
confSaveLock.Lock()
|
||||||
confSaveLock.Unlock()
|
defer confSaveLock.Unlock()
|
||||||
|
|
||||||
newData, _ := gulu.JSON.MarshalIndentJSON(Conf, "", " ")
|
newData, _ := gulu.JSON.MarshalIndentJSON(Conf, "", " ")
|
||||||
confPath := filepath.Join(util.ConfDir, "conf.json")
|
confPath := filepath.Join(util.ConfDir, "conf.json")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue