on xenial help sign in
Whoops, fix argument name to match the Qml plugin
78ec460Michael Terry
Shell.qml+2−2
@@ -500,10 +500,10 @@ FocusScope {
500 onDisplayPowerStateChange: {
500 onDisplayPowerStateChange: {
501 // We ignore any display-off signals when the proximity sensor
501 // We ignore any display-off signals when the proximity sensor
502 // is active. This usually indicates something like a phone call.
502 // is active. This usually indicates something like a phone call.
503− if (state == Powerd.Off && (flags & Powerd.UseProximity) == 0) {
503+ if (status == Powerd.Off && (flags & Powerd.UseProximity) == 0) {
504 powerConnection.setFocused(false);
504 powerConnection.setFocused(false);
505 greeter.show();
505 greeter.show();
506− } else if (state == Powerd.On) {
506+ } else if (status == Powerd.On) {
507 powerConnection.setFocused(true);
507 powerConnection.setFocused(true);
508 }
508 }
509 }
509 }