mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨编辑器动态加载块数由定值改为可配置 Fix https://github.com/siyuan-note/siyuan/issues/6415
This commit is contained in:
parent
5e7a68888b
commit
5b51f18e46
2 changed files with 15 additions and 2 deletions
|
|
@ -257,9 +257,12 @@ func InitConf() {
|
|||
if 1 > Conf.Editor.HistoryRetentionDays {
|
||||
Conf.Editor.HistoryRetentionDays = 7
|
||||
}
|
||||
if 1 > Conf.Editor.DynamicLoadBlocks {
|
||||
if 128 > Conf.Editor.DynamicLoadBlocks {
|
||||
Conf.Editor.DynamicLoadBlocks = 128
|
||||
}
|
||||
if 1024 < Conf.Editor.DynamicLoadBlocks {
|
||||
Conf.Editor.DynamicLoadBlocks = 1024
|
||||
}
|
||||
|
||||
if nil == Conf.Search {
|
||||
Conf.Search = conf.NewSearch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue