From 273e93314581c5d78ce3291167ebaaf3b8800128 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 27 Oct 2021 14:13:49 +0200 Subject: 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. --- cura/Machines/Models/MaterialManagementModel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cura/Machines') diff --git a/cura/Machines/Models/MaterialManagementModel.py b/cura/Machines/Models/MaterialManagementModel.py index 61d8e23acd..3595d3025a 100644 --- a/cura/Machines/Models/MaterialManagementModel.py +++ b/cura/Machines/Models/MaterialManagementModel.py @@ -272,6 +272,8 @@ class MaterialManagementModel(QObject): """ Opens the window to sync all materials. """ + self._material_sync.reset() + if self._material_sync.sync_all_dialog is None: qml_path = Resources.getPath(cura.CuraApplication.CuraApplication.ResourceTypes.QmlFiles, "Preferences", "Materials", "MaterialsSyncDialog.qml") self._material_sync.sync_all_dialog = cura.CuraApplication.CuraApplication.getInstance().createQmlComponent(qml_path, {}) @@ -279,4 +281,4 @@ class MaterialManagementModel(QObject): return self._material_sync.sync_all_dialog.setProperty("syncModel", self._material_sync) self._material_sync.sync_all_dialog.setProperty("pageIndex", 0) # Return to first page. - self._material_sync.sync_all_dialog.show() \ No newline at end of file + self._material_sync.sync_all_dialog.show() -- cgit v1.2.3