Merge pull request #66 from QuantumKraken/patch-1

Update __init__.py
This commit is contained in:
GNU 2018-07-28 10:10:42 +08:00 committed by GitHub
commit 843dda5570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,8 +11,8 @@ import config
class PowerOffConfirmPage(ConfirmPage):
_ConfirmText = "Confirm Power OFF?"
_ConfirmText = "Awaiting Input"
_FootMsg = ["Nav","Reboot","","Cancel","Shutdown"]
def CheckBattery(self):
try:
@ -59,7 +59,11 @@ class PowerOffConfirmPage(ConfirmPage):
cmdpath += "sudo halt -p"
pygame.event.post( pygame.event.Event(RUNSYS, message=cmdpath))
if event.key == CurKeys["X"]:
cmdpath = "sudo reboot"
pygame.event.post( pygame.event.Event(RUNSYS, message=cmdpath))
class APIOBJ(object):