From 91b4f891e7e63dc090495cab4eebf9fc3c9c57b2 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 10 Oct 2019 12:03:45 +0200 Subject: [PATCH] hide applet when no notifications --- applets/notifications/contents/ui/main.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applets/notifications/contents/ui/main.qml b/applets/notifications/contents/ui/main.qml index 7a4481df..bc05bb5d 100644 --- a/applets/notifications/contents/ui/main.qml +++ b/applets/notifications/contents/ui/main.qml @@ -35,6 +35,9 @@ Item { Plasmoid.switchWidth: 500 Plasmoid.switchHeight: 500 + Plasmoid.status: notificationsModel.count > 0 + ? PlasmaCore.Types.ActiveStatus + : PlasmaCore.Types.PassiveStatus function addNotification(source, data, actions) { // Do not show duplicated notifications