mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:59:00 +08:00
Export now exports correct extruder profiles as well
CURA-2496
This commit is contained in:
parent
556431b984
commit
72bd268e2d
@ -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…
x
Reference in New Issue
Block a user