on xenial help sign in
Also update notificationList.topmostIsFullscreen when the index changes
9fdbc31Albert Astals Cid
qml/Notifications/Notifications.qml+5−6
@@ -68,13 +68,12 @@ ListView {
68 // FIXME: disabled all transitions because of LP: #1354406 workaround
68 // FIXME: disabled all transitions because of LP: #1354406 workaround
69 //layer.enabled: add.running || remove.running || populate.running
69 //layer.enabled: add.running || remove.running || populate.running
70
70
71+ readonly property int theIndex: index
72+ onTheIndexChanged: updateListTopMostIsFullscreen();
71− Component.onCompleted: {
73+ Component.onCompleted: updateListTopMostIsFullscreen();
72− if (index == 1) {
74+ onFullscreenChanged: updateListTopMostIsFullscreen();
73− notificationList.topmostIsFullscreen = fullscreen
74− }
75− }
76
75
77− onFullscreenChanged: {
76+ function updateListTopMostIsFullscreen() {
78 // index 1 because 0 is the PlaceHolder...
77 // index 1 because 0 is the PlaceHolder...
79 if (index == 1) {
78 if (index == 1) {
80 notificationList.topmostIsFullscreen = fullscreen
79 notificationList.topmostIsFullscreen = fullscreen