mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Improve New document save location https://github.com/siyuan-note/siyuan/issues/10094
This commit is contained in:
@@ -329,10 +329,6 @@ func setNotebookConf(c *gin.Context) {
|
||||
if "../" == boxConf.DocCreateSavePath {
|
||||
boxConf.DocCreateSavePath = "../Untitled"
|
||||
}
|
||||
for strings.HasSuffix(boxConf.DocCreateSavePath, "/") {
|
||||
boxConf.DocCreateSavePath = strings.TrimSuffix(boxConf.DocCreateSavePath, "/")
|
||||
boxConf.DocCreateSavePath = strings.TrimSpace(boxConf.DocCreateSavePath)
|
||||
}
|
||||
|
||||
box.SaveConf(boxConf)
|
||||
ret.Data = boxConf
|
||||
|
||||
Reference in New Issue
Block a user