From 200339dddbc86c68c0ed105ecca1f484de832c33 Mon Sep 17 00:00:00 2001 From: QuantumKraken <33362023+QuantumKraken@users.noreply.github.com> Date: Fri, 27 Jul 2018 12:55:12 -0700 Subject: [PATCH] Update __init__.py This change adds the option to reboot with the "X" button --- Menu/GameShell/PowerOFF/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Menu/GameShell/PowerOFF/__init__.py b/Menu/GameShell/PowerOFF/__init__.py index cd32448..c7f5a6a 100644 --- a/Menu/GameShell/PowerOFF/__init__.py +++ b/Menu/GameShell/PowerOFF/__init__.py @@ -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):