From 46a12d946b6cc801a3bd97823032ffe3bcd88e6c Mon Sep 17 00:00:00 2001 From: Luis Bocanegra Date: Sat, 21 Sep 2024 18:24:25 -0600 Subject: [PATCH] fix: Use Qt.callLater as an attempt to prevent a plasma crash refs: https://github.com/luisbocanegra/plasma-panel-spacer-extended/issues/41 --- package/contents/ui/main.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml index 16f2168..9ea0316 100644 --- a/package/contents/ui/main.qml +++ b/package/contents/ui/main.qml @@ -206,13 +206,10 @@ PlasmoidItem { filterMinimized: true onActiveTaskChanged: { - updateWindowsinfo() + Qt.callLater(updateWindowsinfo) } - // onDataChanged: { - // updateWindowsinfo() - // } onCountChanged: { - updateWindowsinfo() + Qt.callLater(updateWindowsinfo) } }