Reset sync status when closing and re-opening sync window

Otherwise when you want to sync again, it'll just say that you're done. Not what a user would expect, I reckon.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-27 14:13:49 +02:00
parent 116046a8b2
commit 273e933145
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 10 additions and 2 deletions

View file

@ -191,4 +191,10 @@ class CloudMaterialSync(QObject):
@pyqtProperty("QVariantMap", fset = setPrinterStatus, notify = printerStatusChanged)
def printerStatus(self) -> Dict[str, str]:
return self._printer_status
return self._printer_status
def reset(self) -> None:
self.setPrinterStatus({})
self.setExportProgress(0.0)
self._export_upload_status = "idle"
self.exportUploadStatusChanged.emit()