Skip to content

Commit

Permalink
fix: update last active window on count change
Browse files Browse the repository at this point in the history
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
  • Loading branch information
luisbocanegra committed Sep 19, 2024
1 parent dbe40b1 commit 01a1667
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ PlasmoidItem {
// onDataChanged: {
// updateWindowsinfo()
// }
// onCountChanged: {
// updateWindowsinfo()
// }
onCountChanged: {
updateWindowsinfo()
}
}

function updateWindowsinfo() {
Expand Down

0 comments on commit 01a1667

Please sign in to comment.