on xenial help sign in
Also update notificationList.topmostIsFullscreen when the index changes

Since it's basically index dependant

commit9fdbc314102cf506e05058cf0ba6a28f30834759 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 15 Mar 2016, 15:28 (11 years ago) parent7659185
1 file changed+5−6
qml/Notifications/Notifications.qml+5−6
qml/Notifications/Notifications.qml+5−6
@@ -68,13 +68,12 @@ ListView {
6868 // FIXME: disabled all transitions because of LP: #1354406 workaround
6969 //layer.enabled: add.running || remove.running || populate.running
7070
71− Component.onCompleted: {
72− if (index == 1) {
73− notificationList.topmostIsFullscreen = fullscreen
74− }
75− }
71+ readonly property int theIndex: index
72+ onTheIndexChanged: updateListTopMostIsFullscreen();
73+ Component.onCompleted: updateListTopMostIsFullscreen();
74+ onFullscreenChanged: updateListTopMostIsFullscreen();
7675
77− onFullscreenChanged: {
76+ function updateListTopMostIsFullscreen() {
7877 // index 1 because 0 is the PlaceHolder...
7978 if (index == 1) {
8079 notificationList.topmostIsFullscreen = fullscreen