on xenial help sign in
Leave isCurrent alone for autopilot tests.
c657904Michał Sawicz
Dash/DashContent.qml+2−2
@@ -118,12 +118,12 @@ Item {
118
118
119 // these are needed for autopilot tests
119 // these are needed for autopilot tests
120 readonly property string scopeId: scope.id
120 readonly property string scopeId: scope.id
121− readonly property bool isCurrent: visible && ListView.isCurrentItem
121+ readonly property bool isCurrent: ListView.isCurrentItem
122 readonly property bool isLoaded: status == Loader.Ready
122 readonly property bool isLoaded: status == Loader.Ready
123
123
124 onLoaded: {
124 onLoaded: {
125 item.scope = Qt.binding(function() { return scope })
125 item.scope = Qt.binding(function() { return scope })
126− item.isCurrent = Qt.binding(function() { return isCurrent })
126+ item.isCurrent = Qt.binding(function() { return visible && ListView.isCurrentItem })
127 item.searchHistory = Qt.binding(function() { return shell.searchHistory })
127 item.searchHistory = Qt.binding(function() { return shell.searchHistory })
128 dashContentList.movementStarted.connect(item.movementStarted)
128 dashContentList.movementStarted.connect(item.movementStarted)
129 dashContent.positionedAtBeginning.connect(item.positionedAtBeginning)
129 dashContent.positionedAtBeginning.connect(item.positionedAtBeginning)