From 01a16677aa49ed9975d46f2eb02095a8a192bc9b Mon Sep 17 00:00:00 2001 From: Luis Bocanegra Date: Thu, 19 Sep 2024 00:51:05 -0600 Subject: [PATCH] fix: update last active window on count change Some newly opened windows don't seem to be registered by TaskManager's onActiveChanged But they seem to be correctly detected by onCountChanged when we update the last active one closes: #41 --- package/contents/ui/main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml index b30ba4b..16f2168 100644 --- a/package/contents/ui/main.qml +++ b/package/contents/ui/main.qml @@ -211,9 +211,9 @@ PlasmoidItem { // onDataChanged: { // updateWindowsinfo() // } - // onCountChanged: { - // updateWindowsinfo() - // } + onCountChanged: { + updateWindowsinfo() + } } function updateWindowsinfo() {