mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Backup uploading now shows a intermediate progress bar and hides when done
CURA-6005
This commit is contained in:
parent
e36b3e37d1
commit
83fbb78c9e
1 changed files with 4 additions and 1 deletions
|
@ -27,9 +27,12 @@ class UploadBackupJob(Job):
|
|||
self.backup_upload_error_message = ""
|
||||
|
||||
def run(self) -> None:
|
||||
Message(catalog.i18nc("@info:backup_status", "Uploading your backup..."), title = self.MESSAGE_TITLE).show()
|
||||
upload_message = Message(catalog.i18nc("@info:backup_status", "Uploading your backup..."), title = self.MESSAGE_TITLE, progress = -1)
|
||||
upload_message.show()
|
||||
|
||||
backup_upload = requests.put(self._signed_upload_url, data = self._backup_zip)
|
||||
upload_message.hide()
|
||||
|
||||
if backup_upload.status_code not in (200, 201):
|
||||
self.backup_upload_error_message = backup_upload.text
|
||||
Logger.log("w", "Could not upload backup file: %s", backup_upload.text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue