From 4f84d10b0b747c037b74584b02b2c210cf62ec49 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 11 Mar 2019 20:04:53 +0200 Subject: [PATCH] fix windowsCount for Task in plasmoid --- plasmoid/package/contents/ui/task/TaskItem.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plasmoid/package/contents/ui/task/TaskItem.qml b/plasmoid/package/contents/ui/task/TaskItem.qml index 24e2dbfc8..238db770b 100644 --- a/plasmoid/package/contents/ui/task/TaskItem.qml +++ b/plasmoid/package/contents/ui/task/TaskItem.qml @@ -250,7 +250,13 @@ MouseArea{ taskItem.slotPublishGeometries(); } - previousCount = windowsCount; + //! workaround in order to update correctly the previousCount + //! windowsCount can not return to zero because is such case + //! the window task is removed and the launcher is added from + //! libtaskmanager + if (windowsCount>=1) { + previousCount = windowsCount; + } } }