more general

This commit is contained in:
Peter D. Gray 2024-01-23 14:14:00 -05:00
parent 8b4ac42ec7
commit 5c37b9d20c
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -423,11 +423,12 @@ def import_export_prompt_decode(ch):
slot_b = False
elif ch == '1':
slot_b = None
elif ch == '0':
# special "other" case
return '0'
else:
elif ch == 'x':
return KEY_CANCEL
else:
# Includes: '0': special "other" case
# - cancel, enter, etc
return ch
# return extra arguments to files.file_picker() or CardSlot()
return dict(force_vdisk=force_vdisk, slot_b=slot_b)