mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-09 16:10:17 +00:00
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):
|
def action_backup(self):
|
||||||
session = self.app.service_manager.get_session()
|
session = self.app.service_manager.get_session()
|
||||||
backup_service = BackupService(session)
|
|
||||||
if session:
|
if session:
|
||||||
|
backup_service = BackupService(session)
|
||||||
result = backup_service.create_backup()
|
result = backup_service.create_backup()
|
||||||
else:
|
else:
|
||||||
self.notify("You must be logged in to perform this action")
|
self.notify("You must be logged in to perform this action")
|
||||||
|
|||||||
Reference in New Issue
Block a user