mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
Extend 18d03279b9 to server tweak menu
This commit is contained in:
+2
-2
@@ -337,7 +337,7 @@ def registered_dev_id_remover():
|
|||||||
_whitelisted_ids = listdir(f"{home}/.config/sshyp/whitelist")
|
_whitelisted_ids = listdir(f"{home}/.config/sshyp/whitelist")
|
||||||
|
|
||||||
_choices = _device_ids + ['BACK']
|
_choices = _device_ids + ['BACK']
|
||||||
_del_id = curses_radio(_choices, 'registered device to remove:')
|
_del_id = curses_radio(_choices, 'registered device id to remove:')
|
||||||
if _del_id == len(_choices)-1:
|
if _del_id == len(_choices)-1:
|
||||||
return
|
return
|
||||||
remove(f"{home}/.config/sshyp/devices/{_device_ids[_del_id]}")
|
remove(f"{home}/.config/sshyp/devices/{_device_ids[_del_id]}")
|
||||||
@@ -520,7 +520,7 @@ def global_menu(_scr, _device_type, _top_message):
|
|||||||
'[OPTIONAL] re-encrypt/optimize entries',
|
'[OPTIONAL] re-encrypt/optimize entries',
|
||||||
'[OPTIONAL] extension management'])
|
'[OPTIONAL] extension management'])
|
||||||
else:
|
else:
|
||||||
_options.extend(['remove registered devices', 'manage quick-unlock/whitelist'])
|
_options.extend(['remove registered device ids', 'manage quick-unlock/whitelist'])
|
||||||
_options.extend(['EXIT/DONE'])
|
_options.extend(['EXIT/DONE'])
|
||||||
_choice += curses_radio(_options, _top_message)
|
_choice += curses_radio(_options, _top_message)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user