on xenial help sign in
perform the "reject" action unconditionally
4ea89d8Lukáš Tinkl
qml/Notifications/Notification.qml+3−3
@@ -103,9 +103,9 @@ StyledItem {
103 ListView.view.currentIndex = -1;
103 ListView.view.currentIndex = -1;
104 }
104 }
105
105
106− if (notification.actions.count > 1) { // perform the "reject" action
106+ // perform the "reject" action
107− notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
107+ notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
108− }
108+
109 notification.notification.close();
109 notification.notification.close();
110 }
110 }
111
111