Don't show dialog when display power is off
commite9218115dee21cdc43f9513984b7e6ac3fad5edc
authorYing-Chun Liu <paul.liu@canonical.com>
dateThu 31 Jul 2014, 16:16 (12 years ago)
parenta6c2fba
qml/Shell.qml+3−1
@@ -517,7 +517,9 @@ Item {
517517
518518 // Stop the timer to avoid displaying the power dialog when display
519519 // state is changed.
520− dialogs.onPowerKeyReleased();
520+ if (status == Powerd.Off) {
521+ dialogs.onPowerKeyReleased();
522+ }
521523 }
522524 }
523525