From aa038ec49e19f5ee43b605d58ed289a35af186d1 Mon Sep 17 00:00:00 2001 From: felixzsh Date: Wed, 19 Aug 2026 12:04:31 -0500 Subject: [PATCH] fix: linger config in seconds, not miliseconds --- Panel.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Panel.qml b/Panel.qml index 14ba72e..4d55447 100644 --- a/Panel.qml +++ b/Panel.qml @@ -278,12 +278,14 @@ Panel { label: "" fieldWidth: 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 - to: 10000 - stepSize: 500 + to: 10 + stepSize: 1 // 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 {