mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 07:48:57 +00:00
Merge pull request #309 from PR0M3TH3AN/0qq8xj-codex/prevent-screen-refresh-after-new-entry
Add pause after entry creation
This commit is contained in:
14
src/main.py
14
src/main.py
@@ -663,36 +663,50 @@ def handle_settings(password_manager: PasswordManager) -> None:
|
||||
choice = input("Select an option: ").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()
|
||||
elif choice == "4":
|
||||
password_manager.handle_verify_checksum()
|
||||
pause()
|
||||
elif choice == "5":
|
||||
password_manager.handle_update_script_checksum()
|
||||
pause()
|
||||
elif choice == "6":
|
||||
password_manager.handle_backup_reveal_parent_seed()
|
||||
pause()
|
||||
elif choice == "7":
|
||||
password_manager.handle_export_database()
|
||||
pause()
|
||||
elif choice == "8":
|
||||
path = input("Enter path to backup file: ").strip()
|
||||
if path:
|
||||
password_manager.handle_import_database(Path(path))
|
||||
pause()
|
||||
elif choice == "9":
|
||||
password_manager.handle_export_totp_codes()
|
||||
pause()
|
||||
elif choice == "10":
|
||||
handle_set_additional_backup_location(password_manager)
|
||||
pause()
|
||||
elif choice == "11":
|
||||
handle_set_inactivity_timeout(password_manager)
|
||||
pause()
|
||||
elif choice == "12":
|
||||
password_manager.lock_vault()
|
||||
print(colored("Vault locked. Please re-enter your password.", "yellow"))
|
||||
password_manager.unlock_vault()
|
||||
pause()
|
||||
elif choice == "13":
|
||||
handle_display_stats(password_manager)
|
||||
pause()
|
||||
elif choice == "14":
|
||||
handle_toggle_secret_mode(password_manager)
|
||||
pause()
|
||||
elif choice == "15":
|
||||
break
|
||||
else:
|
||||
|
@@ -1852,11 +1852,13 @@ class PasswordManager:
|
||||
query = input("Enter search string: ").strip()
|
||||
if not query:
|
||||
print(colored("No search string provided.", "yellow"))
|
||||
pause()
|
||||
return
|
||||
|
||||
results = self.entry_manager.search_entries(query)
|
||||
if not results:
|
||||
print(colored("No matching entries found.", "yellow"))
|
||||
pause()
|
||||
return
|
||||
|
||||
print(colored("\n[+] Search Results:\n", "green"))
|
||||
@@ -1866,6 +1868,7 @@ class PasswordManager:
|
||||
except Exception as e:
|
||||
logging.error(f"Failed to search entries: {e}", exc_info=True)
|
||||
print(colored(f"Error: Failed to search entries: {e}", "red"))
|
||||
pause()
|
||||
|
||||
def display_entry_details(self, index: int) -> None:
|
||||
"""Print detailed information for a single entry."""
|
||||
|
Reference in New Issue
Block a user