🎨 Support configuring the floating window hover trigger delay (#17123)

* 🎨 Support configuring the floating window hover trigger delay

* 🎨 Support configuring the floating window hover trigger delay
This commit is contained in:
Jeffrey Chen 2026-03-02 23:13:02 +08:00 committed by GitHub
parent ec4424265a
commit 2739def842
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 82 additions and 2 deletions

View file

@ -292,6 +292,12 @@ func InitConf() {
if 3650 < Conf.Editor.HistoryRetentionDays {
Conf.Editor.HistoryRetentionDays = 3650
}
if nil == Conf.Editor.FloatWindowDelay {
v := 620
Conf.Editor.FloatWindowDelay = &v
} else {
*Conf.Editor.FloatWindowDelay = max(0, min(10000, *Conf.Editor.FloatWindowDelay))
}
if conf.MinDynamicLoadBlocks > Conf.Editor.DynamicLoadBlocks {
Conf.Editor.DynamicLoadBlocks = conf.MinDynamicLoadBlocks
}