Fix moved the backup service initialization inside the check for the session

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda 2025-07-24 18:39:08 -03:00
parent f62ecc18f7
commit 8cf5f7e465
1 changed files with 1 additions and 1 deletions

View File

@ -304,8 +304,8 @@ class DiaryListScreen(Screen):
def action_backup(self):
session = self.app.service_manager.get_session()
backup_service = BackupService(session)
if session:
backup_service = BackupService(session)
result = backup_service.create_backup()
else:
self.notify("You must be logged in to perform this action")