hide applet when no notifications

This commit is contained in:
Marco Martin 2019-10-10 12:03:45 +02:00
parent ba9c60f54c
commit 91b4f891e7

View file

@ -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