From ec22171ed632ce44fae7367c349cdbf4648c75d9 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:59:56 -0400 Subject: [PATCH] Pause after archive and view archived --- src/password_manager/manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/password_manager/manager.py b/src/password_manager/manager.py index 541a94d..b83b9c3 100644 --- a/src/password_manager/manager.py +++ b/src/password_manager/manager.py @@ -2151,6 +2151,7 @@ class PasswordManager: self.entry_manager.archive_entry(index) self.is_dirty = True self.last_update = time.time() + pause() except Exception as e: logging.error(f"Error archiving entry: {e}", exc_info=True) print(colored(f"Error: Failed to archive entry: {e}", "red")) @@ -2162,6 +2163,7 @@ class PasswordManager: archived = [e for e in archived if e[4]] if not archived: print(colored("No archived entries found.", "yellow")) + pause() return while True: clear_and_print_fingerprint( @@ -2183,9 +2185,11 @@ class PasswordManager: self.entry_manager.restore_entry(restore_index) self.is_dirty = True self.last_update = time.time() + pause() archived = [e for e in archived if e[0] != restore_index] if not archived: print(colored("All entries restored.", "green")) + pause() break except Exception as e: logging.error(f"Error viewing archived entries: {e}", exc_info=True)