Fix crash when attempting to restore backup

CURA-6005
This commit is contained in:
Jaime van Kessel 2019-01-04 11:37:52 +01:00
parent b4911478e3
commit c10b8b5c3f

View file

@ -107,7 +107,7 @@ class DriveApiService:
# Tell Cura to place the backup back in the user data folder.
with open(temporary_backup_file.name, "rb") as read_backup:
self._cura_api.backups.restoreBackup(read_backup.read(), backup.get("data"))
self._cura_api.backups.restoreBackup(read_backup.read(), backup.get("metadata", {}))
self.restoringStateChanged.emit(is_restoring = False)
def _emitRestoreError(self):