Remove archive entry option and improve menu

This commit is contained in:
thePR0M3TH3AN
2025-07-07 14:43:20 -04:00
parent a0f5f0529b
commit 3228a574ad
2 changed files with 57 additions and 8 deletions

View File

@@ -683,10 +683,8 @@ def handle_settings(password_manager: PasswordManager) -> None:
choice = input("Select an option or press Enter to go back: ").strip()
if choice == "1":
handle_profiles_menu(password_manager)
pause()
elif choice == "2":
handle_nostr_menu(password_manager)
pause()
elif choice == "3":
password_manager.change_password()
pause()
@@ -750,8 +748,7 @@ def display_menu(
5. Modify an Existing Entry
6. 2FA Codes
7. Settings
8. Archive Entry
9. List Archived
8. List Archived
"""
display_fn = getattr(password_manager, "display_stats", None)
if callable(display_fn):
@@ -781,7 +778,7 @@ def display_menu(
print(color_text(menu, "menu"))
try:
choice = timed_input(
"Enter your choice (1-9) or press Enter to exit: ",
"Enter your choice (1-8) or press Enter to exit: ",
inactivity_timeout,
).strip()
except TimeoutError:
@@ -857,9 +854,6 @@ def display_menu(
password_manager.update_activity()
handle_settings(password_manager)
elif choice == "8":
password_manager.update_activity()
password_manager.handle_archive_entry()
elif choice == "9":
password_manager.update_activity()
password_manager.handle_view_archived_entries()
else: