mirror of https://github.com/gmbrax/Pilgrim.git
Fix moved the backup service initialization inside the check for the session
This commit is contained in:
parent
f62ecc18f7
commit
8cf5f7e465
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue