Skip to content

Commit 368617a

Browse files
committed
Fix saving encrypted cache on initial account setup
1 parent df40db3 commit 368617a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

moneyflow/screens/credential_screens.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ async def save_credentials(self) -> None:
373373
backend_type=self.backend_type,
374374
)
375375

376+
# Load credentials back to get the encryption key for cache encryption
377+
_, encryption_key = cred_manager.load_credentials(encryption_password=encrypt_pass)
378+
self.app.encryption_key = encryption_key
379+
376380
error_label.update("✅ Credentials saved! Loading app...")
377381

378382
# Dismiss this screen and pass credentials back (including backend type)

0 commit comments

Comments
 (0)