mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Show error if the upload failed
Contributes to issue CURA-8609.
This commit is contained in:
parent
ffee4a2443
commit
ffd3277854
3 changed files with 23 additions and 5 deletions
|
@ -405,6 +405,8 @@ class MaterialManagementModel(QObject):
|
|||
job.uploadCompleted.connect(self.exportUploadCompleted)
|
||||
job.start()
|
||||
|
||||
def exportUploadCompleted(self):
|
||||
def exportUploadCompleted(self, job_result: UploadMaterialsJob.Result):
|
||||
if job_result == UploadMaterialsJob.Result.FAILED:
|
||||
self._sync_all_dialog.setProperty("syncStatusText", catalog.i18nc("@text", "Something went wrong when sending the materials to the printers."))
|
||||
self._export_upload_status = "idle"
|
||||
self.exportUploadStatusChanged.emit()
|
Loading…
Add table
Add a link
Reference in a new issue