🎨 The default number of dynamically loaded blocks is adjusted from 128 to 192

This commit is contained in:
Daniel 2023-10-04 10:51:14 +08:00
parent e52e5e1412
commit 62ccbcea67
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -199,7 +199,7 @@ func InitConf() {
Conf.Editor.Emoji = []string{}
}
if 1 > Conf.Editor.BlockRefDynamicAnchorTextMaxLen {
Conf.Editor.BlockRefDynamicAnchorTextMaxLen = 192
Conf.Editor.BlockRefDynamicAnchorTextMaxLen = 64
}
if 5120 < Conf.Editor.BlockRefDynamicAnchorTextMaxLen {
Conf.Editor.BlockRefDynamicAnchorTextMaxLen = 5120
@ -312,7 +312,7 @@ func InitConf() {
Conf.Editor.HistoryRetentionDays = 7
}
if 48 > Conf.Editor.DynamicLoadBlocks {
Conf.Editor.DynamicLoadBlocks = 48
Conf.Editor.DynamicLoadBlocks = 192
}
if 1024 < Conf.Editor.DynamicLoadBlocks {
Conf.Editor.DynamicLoadBlocks = 1024