fix: linger config in seconds, not miliseconds

This commit is contained in:
felixzsh
2026-08-19 12:04:31 -05:00
parent 2ee5f88933
commit aa038ec49e
+6 -4
View File
@@ -278,12 +278,14 @@ Panel {
label: "" label: ""
fieldWidth: Style.space(110) fieldWidth: Style.space(110)
Layout.preferredWidth: Style.space(110) Layout.preferredWidth: Style.space(110)
value: root.lingerMs // Field works in seconds (matches the label); the config stays in
// ms, so we convert at the boundary. Step is 1s, "never hide" at 0.
value: Math.round(root.lingerMs / 1000)
from: 0 from: 0
to: 10000 to: 10
stepSize: 500 stepSize: 1
// 0 = always show (keep the last combo until the next key). // 0 = always show (keep the last combo until the next key).
onModified: function(v) { root.writeConfig({ lingerMs: v }) } onModified: function(v) { root.writeConfig({ lingerMs: v * 1000 }) }
} }
Item { Item {