mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
🎨 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:
parent
ec4424265a
commit
2739def842
22 changed files with 82 additions and 2 deletions
|
|
@ -317,6 +317,13 @@ func setEditor(c *gin.Context) {
|
|||
editor.HistoryRetentionDays = 3650
|
||||
}
|
||||
|
||||
if nil == editor.FloatWindowDelay {
|
||||
v := 620
|
||||
editor.FloatWindowDelay = &v
|
||||
} else {
|
||||
*editor.FloatWindowDelay = max(0, min(10000, *editor.FloatWindowDelay))
|
||||
}
|
||||
|
||||
oldVirtualBlockRef := model.Conf.Editor.VirtualBlockRef
|
||||
oldVirtualBlockRefInclude := model.Conf.Editor.VirtualBlockRefInclude
|
||||
oldVirtualBlockRefExclude := model.Conf.Editor.VirtualBlockRefExclude
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue