on xenial help sign in
Only set scopes active when the screen is on
6c7ea57Pete Woods
qml/Dash/GenericScopeView.qml+2−1
@@ -19,6 +19,7 @@ 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
22import "../Components"
23import "../Components"
23import "../Components/ListItems" as ListItems
24import "../Components/ListItems" as ListItems
24
25
@@ -104,7 +105,7 @@ FocusScope {
104 Binding {
105 Binding {
105 target: scope
106 target: scope
106 property: "isActive"
107 property: "isActive"
107− value: isCurrent && !subPageLoader.open
108+ value: isCurrent && !subPageLoader.open && (Powerd.status === Powerd.On)
108 }
109 }
109
110
110 UnitySortFilterProxyModel {
111 UnitySortFilterProxyModel {