Implement functionality of export to USB button

It now creates a similar dialogue of what the old button did. The dialogue is no longer necessary in the materials page, so I've moved it to here specifically.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-06 15:20:26 +02:00
parent e5dc90a519
commit 038db1fc4f
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
3 changed files with 21 additions and 13 deletions

View file

@ -332,6 +332,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("materialManagementModel", self)
self._sync_all_dialog.setProperty("pageIndex", 0)
self._sync_all_dialog.show()