🎨 When New document save location is configured as /, it will be completed as /Untitled https://github.com/siyuan-note/siyuan/issues/10305

This commit is contained in:
Daniel 2024-02-04 10:15:28 +08:00
parent 2b37ea5d06
commit 3dc93ff409
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 12 additions and 0 deletions

View file

@ -208,6 +208,9 @@ func InitConf() {
if "../" == Conf.FileTree.DocCreateSavePath {
Conf.FileTree.DocCreateSavePath = "../Untitled"
}
if "/" == Conf.FileTree.DocCreateSavePath {
Conf.FileTree.DocCreateSavePath = "/Untitled"
}
util.UseSingleLineSave = Conf.FileTree.UseSingleLineSave
util.CurrentCloudRegion = Conf.CloudRegion