@@ -26,8 +26,10 @@ ListView {
2626
2727 property real margin
2828 property bool useModal
29+ property int snapDecisionCount
2930
30− useModal: false
31+ snapDecisionCount: 0
32+ useModal: snapDecisionCount > 0
3133
3234 delegate: Notification {
3335 objectName: "notification" + index
@@ -47,18 +49,6 @@ ListView {
4749 maxHeight: notificationList.height
4850 margins: notificationList.margin
4951
50− ListView.onAdd: {
51− if (notificationList.count > 1) {
52− notificationList.useModal = true;
53− }
54− }
55−
56− ListView.onRemove: {
57− if (notificationList.count <= 1) {
58− notificationList.useModal = false;
59− }
60− }
61−
6252 // make sure there's no opacity-difference between the several
6353 // elements in a notification
6454 layer.enabled: add.running || remove.running || populate.running