on xenial help sign in
Fixing more MP-comments... moving more control to bindings.
760fea8Mirco Müller
qml/Notifications/Notifications.qml+2−6
@@ -27,6 +27,8 @@ ListView {
27 property real margin
27 property real margin
28 spacing: delegate.fullscreen ? 0 : units.gu(.5)
28 spacing: delegate.fullscreen ? 0 : units.gu(.5)
29
29
30+ currentIndex: (currentIndex < 1 && count > 1) ? 1 : undefined
31+
30 delegate: Notification {
32 delegate: Notification {
31 objectName: "notification" + index
33 objectName: "notification" + index
32 anchors {
34 anchors {
@@ -44,12 +46,6 @@ ListView {
44 notification: notificationList.model.getRaw(notificationId)
46 notification: notificationList.model.getRaw(notificationId)
45 maxHeight: notificationList.height
47 maxHeight: notificationList.height
46 margins: notificationList.margin
48 margins: notificationList.margin
47−
48− ListView.onAdd: {
49− if (notificationList.currentIndex < 1 && notificationList.count > 1) {
50− notificationList.currentIndex = 1
51− }
52− }
53
49
54 // make sure there's no opacity-difference between the several
50 // make sure there's no opacity-difference between the several
55 // elements in a notification
51 // elements in a notification