~josharenson/unity8/fix-greeter-password-focus-backport

« back to all changes in this revision

Viewing changes to qml/Notifications/Notification.qml

First snap decision should always be expanded, unless user decides otherwise Fixes: #1575045, #1580090
Approved by: Michael Terry

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    }
100
100
 
101
101
    function closeNotification() {
 
102
        if (index === ListView.view.currentIndex) { // reset to get the 1st snap decision expanded
 
103
            ListView.view.currentIndex = -1;
 
104
        }
 
105
 
102
106
        if (notification.actions.count > 1) { // perform the "reject" action
103
107
            notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
104
108
        }
382
386
                objectName: "dialogListView"
383
387
                spacing: notification.margins
384
388
 
385
 
                visible: count > 0
 
389
                visible: count > 0 && notification.expanded
386
390
 
387
391
                anchors {
388
392
                    left: parent.left