on xenial help sign in
Whoops, fix argument name to match the Qml plugin
commit78ec46036bf35d64512e5093f770c70ed897061a authorMichael Terry <michael.terry@canonical.com> dateTue 20 Aug 2013, 22:13 (13 years ago) parent4800762
1 file changed+2−2
Shell.qml+2−2
Shell.qml+2−2
@@ -500,10 +500,10 @@ FocusScope {
500500 onDisplayPowerStateChange: {
501501 // We ignore any display-off signals when the proximity sensor
502502 // 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) {
504504 powerConnection.setFocused(false);
505505 greeter.show();
506− } else if (state == Powerd.On) {
506+ } else if (status == Powerd.On) {
507507 powerConnection.setFocused(true);
508508 }
509509 }