From b1865e26341003b4f0f2d91f15d3ca793ec85933 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 24 Feb 2019 16:33:37 +0200 Subject: [PATCH] hide indicator properly when task is removed --- containment/package/contents/ui/applet/IndicatorLoader.qml | 1 + liblatte2/qml/indicators/LatteIndicator.qml | 2 +- plasmoid/package/contents/ui/task/IndicatorLoader.qml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/containment/package/contents/ui/applet/IndicatorLoader.qml b/containment/package/contents/ui/applet/IndicatorLoader.qml index 3e30b9749..eb48a158b 100644 --- a/containment/package/contents/ui/applet/IndicatorLoader.qml +++ b/containment/package/contents/ui/applet/IndicatorLoader.qml @@ -57,6 +57,7 @@ Loader{ readonly property bool isGroup: false readonly property bool isMinimized: false readonly property bool inAttention: false + readonly property bool inRemoving: false readonly property bool hasActive: isActive readonly property bool hasMinimized: false diff --git a/liblatte2/qml/indicators/LatteIndicator.qml b/liblatte2/qml/indicators/LatteIndicator.qml index d7cd1a39c..2c026ecaf 100644 --- a/liblatte2/qml/indicators/LatteIndicator.qml +++ b/liblatte2/qml/indicators/LatteIndicator.qml @@ -71,7 +71,7 @@ Item{ id:firstPoint opacity: { if (rootItem.isTask) { - return rootItem.isLauncher ? 0 : 1 + return rootItem.isLauncher || (rootItem.inRemoving && !activeAndReverseAnimation.running) ? 0 : 1 } if (rootItem.isApplet) { diff --git a/plasmoid/package/contents/ui/task/IndicatorLoader.qml b/plasmoid/package/contents/ui/task/IndicatorLoader.qml index d8bd40e4f..a4adaca6c 100644 --- a/plasmoid/package/contents/ui/task/IndicatorLoader.qml +++ b/plasmoid/package/contents/ui/task/IndicatorLoader.qml @@ -68,6 +68,7 @@ Loader { readonly property bool isGroup: taskItem.isGroupParent readonly property bool isMinimized: taskItem.isMinimized readonly property bool inAttention: taskItem.inAttention + readonly property bool inRemoving: taskItem.inRemoveStage readonly property bool hasActive: taskItem.hasActive readonly property bool hasMinimized: taskItem.hasMinimized