Refactor EntryManager to use BackupManager

This commit is contained in:
thePR0M3TH3AN
2025-07-03 11:35:12 -04:00
parent 55d932d0b9
commit 6691667bb1
18 changed files with 70 additions and 74 deletions

View File

@@ -751,9 +751,10 @@ class PasswordManager:
raise ValueError("EncryptionManager is not initialized.")
# Reinitialize the managers with the updated EncryptionManager and current fingerprint context
self.backup_manager = BackupManager(fingerprint_dir=self.fingerprint_dir)
self.entry_manager = EntryManager(
vault=self.vault,
fingerprint_dir=self.fingerprint_dir,
backup_manager=self.backup_manager,
)
self.password_generator = PasswordGenerator(
@@ -762,8 +763,6 @@ class PasswordManager:
bip85=self.bip85,
)
self.backup_manager = BackupManager(fingerprint_dir=self.fingerprint_dir)
# Load relay configuration and initialize NostrClient
self.config_manager = ConfigManager(
vault=self.vault,