Replace misuses of ".extend()"

This commit is contained in:
2024-01-07 16:33:45 -05:00
parent 2f7b548360
commit 5ce28e1138
+2 -2
View File
@@ -203,7 +203,7 @@ def ssh_config(_reconfig=False):
_keys.extend(['auto-generate', 'other (type the location)']) _keys.extend(['auto-generate', 'other (type the location)'])
# append a back button if launched optionally # append a back button if launched optionally
if _reconfig: if _reconfig:
_keys.extend(['BACK']) _keys.append('BACK')
_key_selected_num = curses_radio(_keys, 'which private ssh key would you like to use for sshyp?') _key_selected_num = curses_radio(_keys, 'which private ssh key would you like to use for sshyp?')
if _reconfig and _key_selected_num == len(_keys)-1: if _reconfig and _key_selected_num == len(_keys)-1:
return return
@@ -534,7 +534,7 @@ def global_menu(_scr, _device_type, _top_message):
'[OPTIONAL] extension management']) '[OPTIONAL] extension management'])
else: else:
_options.extend(['remove registered device ids', 'manage quick-unlock/whitelist']) _options.extend(['remove registered device ids', 'manage quick-unlock/whitelist'])
_options.extend(['EXIT/DONE']) _options.append('EXIT/DONE')
_choice += curses_radio(_options, _top_message) _choice += curses_radio(_options, _top_message)
if _choice == 0: if _choice == 0: