mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 23:05:01 -06:00
Remove reference to Cura in UM component
Add isActiveModelFunction that can be overwritten in inheriting components Override isActiveModelFunction in Profiles page, this is done because quality models do not have a unique id that can be assigned to activeId CURA-9044
This commit is contained in:
parent
7dfcac7bbe
commit
a3892c8147
1 changed files with 11 additions and 0 deletions
|
@ -48,6 +48,17 @@ UM.ManagementPage
|
|||
|
||||
onHamburgeButtonClicked: menu.popup(content_item, content_item.width - menu.width, hamburger_button.height)
|
||||
|
||||
isActiveModelFunction: function(model, id) {
|
||||
if (model.is_read_only)
|
||||
{
|
||||
return (model.name == Cura.MachineManager.activeQualityOrQualityChangesName) && (model.intent_category == Cura.MachineManager.activeIntentCategory);
|
||||
}
|
||||
else
|
||||
{
|
||||
return model.name == Cura.MachineManager.activeQualityOrQualityChangesName;
|
||||
}
|
||||
}
|
||||
|
||||
onCreateProfile:
|
||||
{
|
||||
createQualityDialog.object = Cura.ContainerManager.makeUniqueName(Cura.MachineManager.activeQualityOrQualityChangesName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue