No longer exit the tweak menu after (un-)installing an extension

Former-commit-id: 6589fef86d354b7dd3fd066e19b87b412c5e6eec
Former-commit-id: 6d9b5a407a566effa13943664d4d6ba00de40d54
This commit is contained in:
2023-07-08 19:41:45 -04:00
parent 7f4ddd2775
commit 9fc2aa69a3
+4
View File
@@ -576,6 +576,8 @@ def wrapped_entry(_gm_device_type, _gm_top_message='configuration options:'):
wrapper(lambda _wrap_stdscr: (use_default_colors(), initial_setup(_wrap_stdscr))) wrapper(lambda _wrap_stdscr: (use_default_colors(), initial_setup(_wrap_stdscr)))
# any other value will be provided as the global menu device type # any other value will be provided as the global menu device type
else: else:
_repeat = True
while _repeat:
try: try:
_ext_name, _escalator, _action = \ _ext_name, _escalator, _action = \
wrapper(lambda _wrap_stdscr: (use_default_colors(), wrapper(lambda _wrap_stdscr: (use_default_colors(),
@@ -597,3 +599,5 @@ def wrapped_entry(_gm_device_type, _gm_top_message='configuration options:'):
# uninstall with privilege escalation (outside of curses) # uninstall with privilege escalation (outside of curses)
run((_escalator, 'rm', '-I', f"/usr/lib/sshyp/{_ext_name}", run((_escalator, 'rm', '-I', f"/usr/lib/sshyp/{_ext_name}",
f"/usr/lib/sshyp/extensions/{_ext_name}.ini")) f"/usr/lib/sshyp/extensions/{_ext_name}.ini"))
else:
_repeat = False