added quit to dev menu
This commit is contained in:
parent
eef3a8756d
commit
3fde1996ca
@ -11,13 +11,20 @@ def reboot_system():
|
|||||||
def shutdown_system():
|
def shutdown_system():
|
||||||
os.system('sudo shutdown now')
|
os.system('sudo shutdown now')
|
||||||
|
|
||||||
|
|
||||||
def update():
|
def update():
|
||||||
pygame.quit()
|
pygame.quit()
|
||||||
os.system('bash ~/update.sh')
|
os.system('bash ~/update.sh')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
def restart_app():
|
def restart_app():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
def show_black():
|
def show_black():
|
||||||
return 'show_black'
|
return 'show_black'
|
||||||
|
|
||||||
|
|
||||||
|
def quit():
|
||||||
|
sys.exit(0)
|
||||||
|
@ -8,7 +8,8 @@ dev_functions = {
|
|||||||
'Shutdown': 'shutdown_system',
|
'Shutdown': 'shutdown_system',
|
||||||
'Update': 'update',
|
'Update': 'update',
|
||||||
'Re-open App': 'restart_app',
|
'Re-open App': 'restart_app',
|
||||||
'Black screen': 'show_black'
|
'Black screen': 'show_black',
|
||||||
|
'!!! Close App': 'quit'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user