@@ -84,6 +84,10 @@ StyledItem {
86 Component.onCompleted: {
86 Component.onCompleted: {
87+ if (type === Notification.PlaceHolder) {
87 // Turn on screen as needed (Powerd.Notification means the screen
91 // Turn on screen as needed (Powerd.Notification means the screen
88 // stays on for a shorter amount of time)
92 // stays on for a shorter amount of time)
89 if (type === Notification.SnapDecision) {
93 if (type === Notification.SnapDecision) {
@@ -98,6 +102,18 @@ StyledItem {
105+ Component.onDestruction: {
106+ if (type === Notification.PlaceHolder) {
110+ if (type === Notification.SnapDecision) {
111+ Powerd.setStatus(Powerd.Off, Powerd.SnapDecision);
112+ } else if (type !== Notification.Confirmation) {
113+ Powerd.setStatus(Powerd.Off, Powerd.Notification);
101 function closeNotification() {
117 function closeNotification() {
102 if (notification.actions.count > 1) { // perform the "reject" action
118 if (notification.actions.count > 1) { // perform the "reject" action
103 notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
119 notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));