GPS only goes active when the Dash is in the foreground Fixes: #1434379
Approved by: Michał Sawicz
commitadb8c59f57276661a6e2969dbbfd8632c864a2b7
authorPete Woods <pete.woods@canonical.com>
dateThu 9 Apr 2015, 14:00 (12 years ago)
parentcc8f2bae4f2881
qml/Dash/Dash.qml+1−1
@@ -191,7 +191,7 @@ Showable {
191191 Binding {
192192 target: scopesList.scope
193193 property: "isActive"
194− value: bottomEdgeController.progress === 1
194+ value: bottomEdgeController.progress === 1 && (Qt.application.state == Qt.ApplicationActive)
195195 }
196196
197197 Connections {
qml/Dash/GenericScopeView.qml+1−2
@@ -19,7 +19,6 @@ import Ubuntu.Components 1.1
1919import Utils 0.1
2020import Unity 0.2
2121import Dash 0.1
22−import Powerd 0.1
2322import "../Components"
2423import "../Components/ListItems" as ListItems
2524
@@ -105,7 +104,7 @@ FocusScope {
105104 Binding {
106105 target: scope
107106 property: "isActive"
108− value: isCurrent && !subPageLoader.open && (Powerd.status === Powerd.On)
107+ value: isCurrent && !subPageLoader.open && (Qt.application.state == Qt.ApplicationActive)
109108 }
110109
111110 UnitySortFilterProxyModel {