From 6e8288e651702b4591dad104326bc2ca9f872a05 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 5 Jul 2025 18:31:59 -0400 Subject: [PATCH] Run backup after configuring additional location --- README.md | 3 ++- src/main.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6eecfaa..29859ea 100644 --- a/README.md +++ b/README.md @@ -324,7 +324,8 @@ Back in the Settings menu you can: * Select `7` to export the database to an encrypted file. * Choose `8` to import a database from a backup file. * Select `9` to export all 2FA codes. -* Choose `10` to set an additional backup location. +* Choose `10` to set an additional backup location. A backup is created + immediately after the directory is configured. * Select `11` to change the inactivity timeout. * Choose `12` to lock the vault and require re-entry of your password. * Select `13` to view seed profile stats. The summary lists counts for diff --git a/src/main.py b/src/main.py index b7cc7fd..5e77705 100644 --- a/src/main.py +++ b/src/main.py @@ -514,6 +514,8 @@ def handle_set_additional_backup_location(pm: PasswordManager) -> None: try: cfg_mgr.set_additional_backup_path(str(path)) print(colored(f"Additional backups will be copied to {path}", "green")) + if pm.backup_manager is not None: + pm.backup_manager.create_backup() except Exception as e: logging.error(f"Error saving backup path: {e}") print(colored(f"Error: {e}", "red"))