Prompt for fingerprint selection if multiple

This commit is contained in:
thePR0M3TH3AN
2025-07-11 22:20:56 -04:00
parent a08c27132a
commit 5af3228d4b
2 changed files with 70 additions and 3 deletions

View File

@@ -276,13 +276,16 @@ class PasswordManager:
try:
fingerprints = self.fingerprint_manager.list_fingerprints()
current = self.fingerprint_manager.current_fingerprint
if current and current in fingerprints:
self.select_fingerprint(current)
# Auto-select when only one fingerprint exists
if len(fingerprints) == 1:
self.select_fingerprint(fingerprints[0])
return
print(colored("\nAvailable Seed Profiles:", "cyan"))
for idx, fp in enumerate(fingerprints, start=1):
print(colored(f"{idx}. {fp}", "cyan"))
marker = " *" if fp == current else ""
print(colored(f"{idx}. {fp}{marker}", "cyan"))
print(colored(f"{len(fingerprints)+1}. Add a new seed profile", "cyan"))