🎨 History Retention Days supports a maximum setting of 3650 https://github.com/siyuan-note/siyuan/issues/15979

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-29 21:13:15 +08:00
parent 02602f886e
commit e36592ab5c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 12 additions and 2 deletions

View file

@ -260,6 +260,9 @@ func InitConf() {
if 1 > Conf.Editor.HistoryRetentionDays {
Conf.Editor.HistoryRetentionDays = 30
}
if 3650 < Conf.Editor.HistoryRetentionDays {
Conf.Editor.HistoryRetentionDays = 3650
}
if conf.MinDynamicLoadBlocks > Conf.Editor.DynamicLoadBlocks {
Conf.Editor.DynamicLoadBlocks = conf.MinDynamicLoadBlocks
}