mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-03 07:37:16 -04:00
Fixed keyboard interrupts not closing tweak menu
Former-commit-id: 76d730a63118b1e4490b6c4f8a5ca7bc84617a6b Former-commit-id: 234c9c7ac5f3083cf9b0f3fdc35a2bce5f684d07
This commit is contained in:
+4
-6
@@ -233,12 +233,9 @@ def quick_unlock_config(_default):
|
|||||||
|
|
||||||
# continually shows the tweak menu after each change until the user manually exits
|
# continually shows the tweak menu after each change until the user manually exits
|
||||||
def menu_repeat(_post_setup):
|
def menu_repeat(_post_setup):
|
||||||
try:
|
while True:
|
||||||
while True:
|
if global_menu(_post_setup):
|
||||||
if global_menu(_post_setup):
|
break
|
||||||
break
|
|
||||||
except KeyboardInterrup:
|
|
||||||
s_exit(0)
|
|
||||||
|
|
||||||
|
|
||||||
# runs secondary configuration menu
|
# runs secondary configuration menu
|
||||||
@@ -292,6 +289,7 @@ def global_menu(_post_setup):
|
|||||||
curses_terminate(_term_message)
|
curses_terminate(_term_message)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
curses_terminate(False)
|
curses_terminate(False)
|
||||||
|
_return_val = True
|
||||||
return _return_val
|
return _return_val
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user