This commit is contained in:
Daniel 2024-01-07 15:27:20 +08:00
parent 69f2eeb625
commit e4cee23592
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 0 additions and 16 deletions

View file

@ -377,10 +377,6 @@ func setFiletree(c *gin.Context) {
if "../" == fileTree.DocCreateSavePath {
fileTree.DocCreateSavePath = "../Untitled"
}
for strings.HasSuffix(fileTree.DocCreateSavePath, "/") {
fileTree.DocCreateSavePath = strings.TrimSuffix(fileTree.DocCreateSavePath, "/")
fileTree.DocCreateSavePath = strings.TrimSpace(fileTree.DocCreateSavePath)
}
if 1 > fileTree.MaxOpenTabCount {
fileTree.MaxOpenTabCount = 8