mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-13 16:21:42 +00:00
Remove archive entry option and improve menu
This commit is contained in:
1 parent
a0f5f0529b
commit
3228a574ad
2 files changed
+57
-8
No files matched your search
+2
-8
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user