on xenial help sign in
Fixing more MP-comments... moving more control to bindings.
commit760fea8d1e67294aa42e5a55b18a36e136d52fbc authorMirco Müller <mirco.mueller@canonical.com> dateMon 17 Mar 2014, 16:18 (13 years ago) parentf420103
1 file changed+2−6
qml/Notifications/Notifications.qml+2−6
qml/Notifications/Notifications.qml+2−6
@@ -27,6 +27,8 @@ ListView {
2727 property real margin
2828 spacing: delegate.fullscreen ? 0 : units.gu(.5)
2929
30+ currentIndex: (currentIndex < 1 && count > 1) ? 1 : undefined
31+
3032 delegate: Notification {
3133 objectName: "notification" + index
3234 anchors {
@@ -44,12 +46,6 @@ ListView {
4446 notification: notificationList.model.getRaw(notificationId)
4547 maxHeight: notificationList.height
4648 margins: notificationList.margin
47−
48− ListView.onAdd: {
49− if (notificationList.currentIndex < 1 && notificationList.count > 1) {
50− notificationList.currentIndex = 1
51− }
52− }
5349
5450 // make sure there's no opacity-difference between the several
5551 // elements in a notification