@@ -86,6 +86,10 @@ StyledItem {
8686 }
8787
8888 Component.onCompleted: {
89+ if (type === Notification.PlaceHolder) {
90+ return;
91+ }
92+
8993 // Turn on screen as needed (Powerd.Notification means the screen
9094 // stays on for a shorter amount of time)
9195 if (type === Notification.SnapDecision) {
@@ -100,6 +104,18 @@ StyledItem {
100104 }
101105 }
102106
107+ Component.onDestruction: {
108+ if (type === Notification.PlaceHolder) {
109+ return;
110+ }
111+
112+ if (type === Notification.SnapDecision) {
113+ Powerd.setStatus(Powerd.Off, Powerd.SnapDecision);
114+ } else if (type !== Notification.Confirmation) {
115+ Powerd.setStatus(Powerd.Off, Powerd.Notification);
116+ }
117+ }
118+
103119 function closeNotification() {
104120 if (index === ListView.view.currentIndex) { // reset to get the 1st snap decision expanded
105121 ListView.view.currentIndex = -1;