on xenial help sign in
Don't show dialog when display power is off
e921811Ying-Chun Liu
qml/Shell.qml+3−1
@@ -517,7 +517,9 @@ Item {
517
517
518 // Stop the timer to avoid displaying the power dialog when display
518 // Stop the timer to avoid displaying the power dialog when display
519 // state is changed.
519 // state is changed.
520+ if (status == Powerd.Off) {
520− dialogs.onPowerKeyReleased();
521+ dialogs.onPowerKeyReleased();
522+ }
521 }
523 }
522 }
524 }
523
525