Show upload error or success in header once completed

According to the brand new design.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-11 15:27:54 +02:00
parent 8ae93c6bc1
commit c3d392c5cf
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 56 additions and 16 deletions

View file

@ -408,5 +408,7 @@ class MaterialManagementModel(QObject):
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._export_upload_status = "error"
else:
self._export_upload_status = "success"
self.exportUploadStatusChanged.emit()