on xenial help sign in
GPS only goes active when the Dash is in the foreground Fixes: #1434379
adb8c59Pete Woods
qml/Dash/Dash.qml+1−1
@@ -191,7 +191,7 @@ Showable {
191 Binding {
191 Binding {
192 target: scopesList.scope
192 target: scopesList.scope
193 property: "isActive"
193 property: "isActive"
194− value: bottomEdgeController.progress === 1
194+ value: bottomEdgeController.progress === 1 && (Qt.application.state == Qt.ApplicationActive)
195 }
195 }
196
196
197 Connections {
197 Connections {
qml/Dash/GenericScopeView.qml+1−2
@@ -19,7 +19,6 @@ import Ubuntu.Components 1.1
19import Utils 0.1
19import Utils 0.1
20import Unity 0.2
20import Unity 0.2
21import Dash 0.1
21import Dash 0.1
22−import Powerd 0.1
23import "../Components"
22import "../Components"
24import "../Components/ListItems" as ListItems
23import "../Components/ListItems" as ListItems
25
24
@@ -105,7 +104,7 @@ FocusScope {
105 Binding {
104 Binding {
106 target: scope
105 target: scope
107 property: "isActive"
106 property: "isActive"
108− value: isCurrent && !subPageLoader.open && (Powerd.status === Powerd.On)
107+ value: isCurrent && !subPageLoader.open && (Qt.application.state == Qt.ApplicationActive)
109 }
108 }
110
109
111 UnitySortFilterProxyModel {
110 UnitySortFilterProxyModel {