diff --git a/kernel/model/conf.go b/kernel/model/conf.go index ce6a1f882..fc78fee7d 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -133,6 +133,9 @@ func InitConf() { if 1 > Conf.FileTree.MaxOpenTabCount { Conf.FileTree.MaxOpenTabCount = 12 } + if 32 < Conf.FileTree.MaxOpenTabCount { + Conf.FileTree.MaxOpenTabCount = 32 + } if nil == Conf.Tag { Conf.Tag = conf.NewTag() }