Re-implement showing active profile as italic

This went got removed during a merge conflict

see
https://github.com/Ultimaker/Cura/pull/11696
https://github.com/Ultimaker/Uranium/pull/798

CURA-9044
This commit is contained in:
casper 2022-03-22 11:43:36 +01:00
parent a7aa92427e
commit d7cf7ee97d

View file

@ -66,6 +66,18 @@ UM.ManagementPage
// reset height to initial heigt
hamburger_button.height = hamburerButtonHeight;
}
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;
}
}
sectionRole: "section_name"
model: qualityManagementModel