Fix error message after a failed sync.

This fxes the issue where it would still show an error message if you
first have a sync fail and then have one that succeeds

CURA-8670
This commit is contained in:
Jaime van Kessel 2021-12-03 14:19:59 +01:00
parent 1671139225
commit f999d990e0

View File

@ -57,6 +57,7 @@ class CloudMaterialSync(QObject):
self.sync_all_dialog.setProperty("syncModel", self) self.sync_all_dialog.setProperty("syncModel", self)
self.sync_all_dialog.setProperty("pageIndex", 0) # Return to first page. self.sync_all_dialog.setProperty("pageIndex", 0) # Return to first page.
self.sync_all_dialog.setProperty("hasExportedUsb", False) # If the user exported USB before, reset that page. self.sync_all_dialog.setProperty("hasExportedUsb", False) # If the user exported USB before, reset that page.
self.sync_all_dialog.setProperty("syncStatusText", "") # Reset any previous error messages.
self.sync_all_dialog.show() self.sync_all_dialog.show()
def _showSyncNewMaterialsMessage(self) -> None: def _showSyncNewMaterialsMessage(self) -> None: