mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 06:33:55 -06:00
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:
parent
116046a8b2
commit
273e933145
2 changed files with 10 additions and 2 deletions
|
@ -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()
|
||||
self._material_sync.sync_all_dialog.show()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue