mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 22:55:53 +08:00
Fix crash when attempting to restore backup
CURA-6005
This commit is contained in:
parent
b4911478e3
commit
c10b8b5c3f
@ -107,7 +107,7 @@ class DriveApiService:
|
|||||||
|
|
||||||
# Tell Cura to place the backup back in the user data folder.
|
# Tell Cura to place the backup back in the user data folder.
|
||||||
with open(temporary_backup_file.name, "rb") as read_backup:
|
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)
|
self.restoringStateChanged.emit(is_restoring = False)
|
||||||
|
|
||||||
def _emitRestoreError(self):
|
def _emitRestoreError(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user