From f255fa05e938980d3d0430ffd9c5bf0ad0248ee1 Mon Sep 17 00:00:00 2001 From: felixzsh Date: Tue, 11 Aug 2026 13:58:48 -0500 Subject: [PATCH] Fix the Show keys toggle: flip the real paused state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ToggleSwitch does not flip checked on click — it only emits toggled() and the caller owns the value. Reading !checked there yielded the current bound state, so setPaused's guard always early-returned and the toggle never did anything. Flip !root.paused instead; the checked binding follows the flag file. --- Panel.qml | 5 ++++- manifest.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Panel.qml b/Panel.qml index 3b92b3b..e07769a 100644 --- a/Panel.qml +++ b/Panel.qml @@ -153,7 +153,10 @@ Panel { checked: !root.paused foreground: Color.popups.text accent: Color.accent - onToggled: root.setPaused(!checked) + // ToggleSwitch does not flip `checked` itself — it only emits + // toggled() and the caller owns the value. Flip the real state; + // the checked binding follows. + onToggled: root.setPaused(!root.paused) } } diff --git a/manifest.json b/manifest.json index 6fb58b3..ee743cd 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "schemaVersion": 1, "id": "felixzsh.key-visualizer", "name": "Key Visualizer", - "version": "1.3.1", + "version": "1.3.2", "description": "Shows the keys you press on screen. Great for keybinding tutorials, demos, and screencasts.", "kinds": [ "panel",