diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-10-05 14:32:37 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-10-05 15:00:15 +0300 |
commit | f2aba01eff3290dca8bb40215c63c67928eab5d6 (patch) | |
tree | bd5bebcf2e3baf821ba21ae535eeb6173a2e1fbf /cura/Machines/Models | |
parent | 9b1c8d1c7aad98182d4d666a0f44d027d62e5a48 (diff) |
Reset page index to 0 when re-opening sync dialogue
When the user previously opened the dialog and advanced through the pages, but closes the window, then they'll probably have to restart when they want to try it again.
Contributes to issue CURA-8609.
Diffstat (limited to 'cura/Machines/Models')
-rw-r--r-- | cura/Machines/Models/MaterialManagementModel.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cura/Machines/Models/MaterialManagementModel.py b/cura/Machines/Models/MaterialManagementModel.py index 31f9bfbc92..8f1d421ffb 100644 --- a/cura/Machines/Models/MaterialManagementModel.py +++ b/cura/Machines/Models/MaterialManagementModel.py @@ -277,6 +277,7 @@ class MaterialManagementModel(QObject): self._sync_all_dialog = cura.CuraApplication.CuraApplication.getInstance().createQmlComponent(qml_path, {}) if self._sync_all_dialog is None: # Failed to load QML file. return + self._sync_all_dialog.setProperty("pageIndex", 0) self._sync_all_dialog.show() @pyqtSlot(result = QUrl) |