mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Export now exports correct extruder profiles as well
CURA-2496
This commit is contained in:
parent
556431b984
commit
72bd268e2d
1 changed files with 4 additions and 6 deletions
|
|
@ -336,18 +336,16 @@ UM.ManagementPage
|
||||||
folder: CuraApplication.getDefaultPath("dialog_profile_path")
|
folder: CuraApplication.getDefaultPath("dialog_profile_path")
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
var profiles_to_export = [base.currentItem.id]
|
var containers = Cura.ContainerManager.findInstanceContainers({"type": "quality_changes", "name": base.currentItem.name})
|
||||||
for(var extruder_nr in base.extrudersModel.items)
|
var result = base.model.exportProfile(containers, fileUrl, selectedNameFilter)
|
||||||
{
|
|
||||||
profiles_to_export.push(ExtruderManager.getQualityChangesIdByExtruderStackId(base.extrudersModel.items[extruder_nr].id))
|
|
||||||
}
|
|
||||||
var result = base.model.exportProfile(profiles_to_export, fileUrl, selectedNameFilter)
|
|
||||||
if(result && result.status == "error")
|
if(result && result.status == "error")
|
||||||
{
|
{
|
||||||
messageDialog.icon = StandardIcon.Critical
|
messageDialog.icon = StandardIcon.Critical
|
||||||
messageDialog.text = result.message
|
messageDialog.text = result.message
|
||||||
messageDialog.open()
|
messageDialog.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
// else pop-up Message thing from python code
|
// else pop-up Message thing from python code
|
||||||
CuraApplication.setDefaultPath("dialog_profile_path", folder)
|
CuraApplication.setDefaultPath("dialog_profile_path", folder)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue