Test avoiding decryption when selecting active profile

This commit is contained in:
thePR0M3TH3AN
2025-08-06 21:45:21 -04:00
parent 87f1e35487
commit 051454ff2e
2 changed files with 39 additions and 0 deletions

View File

@@ -191,6 +191,13 @@ def handle_switch_fingerprint(password_manager: PasswordManager):
return
selected_fingerprint = fingerprints[int(choice) - 1]
if selected_fingerprint == password_manager.current_fingerprint:
print(
colored(
f"Seed profile {selected_fingerprint} is already active.", "yellow"
)
)
return
if password_manager.select_fingerprint(selected_fingerprint):
print(colored(f"Switched to seed profile {selected_fingerprint}.", "green"))
else: