mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 支持笔记本设置独立的排序规则 https://github.com/siyuan-note/siyuan/issues/3623
This commit is contained in:
parent
4103b380ab
commit
72a8132775
3 changed files with 10 additions and 0 deletions
|
|
@ -233,6 +233,11 @@ func ListDocTree(boxID, path string, sortMode int) (ret []*File, totals int, err
|
|||
return nil, 0, errors.New(Conf.Language(0))
|
||||
}
|
||||
|
||||
boxConf := box.GetConf()
|
||||
if util.SortModeFileTree != boxConf.SortMode {
|
||||
sortMode = boxConf.SortMode
|
||||
}
|
||||
|
||||
var files []*FileInfo
|
||||
start := time.Now()
|
||||
files, totals, err = box.Ls(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue