From 50189dd526b06a42319049f1ae97bf55d47ed849 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 7 Jan 2024 17:14:36 -0500 Subject: [PATCH] Warn against removing active device IDs --- lib/stweak.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/stweak.py b/lib/stweak.py index ea5ffca..2369bee 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -343,7 +343,9 @@ def registered_dev_id_remover(_back=False): _device_ids = listdir(f"{home}/.config/sshyp/devices") + ['BACK'] _whitelisted_ids = listdir(f"{home}/.config/sshyp/whitelist") while not _back: - _del_id = curses_radio(_device_ids, 'registered device id to remove:') + _del_id = curses_radio(_device_ids, 'WARNING: only remove registered device ids if they are no longer in use' + '\n\nthe removal of an active device id will result in the malfunction of ' + 'the device still using the removed id\n\nregistered device id to remove:') if _del_id == len(_device_ids) - 1: _back = True else: