diff options
author | casper <c.lamboo@ultimaker.com> | 2022-03-22 13:43:36 +0300 |
---|---|---|
committer | casper <c.lamboo@ultimaker.com> | 2022-03-22 13:43:36 +0300 |
commit | d7cf7ee97d3163ed2bf9e0478af22e62398aef1f (patch) | |
tree | 97a6498d8553886ffb016699fa9c70c92133524a | |
parent | a7aa92427e59e1632cc0d69abc808b2cf20d0802 (diff) |
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
-rw-r--r-- | resources/qml/Preferences/ProfilesPage.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/resources/qml/Preferences/ProfilesPage.qml b/resources/qml/Preferences/ProfilesPage.qml index c8de3ccb5b..9ea23194e7 100644 --- a/resources/qml/Preferences/ProfilesPage.qml +++ b/resources/qml/Preferences/ProfilesPage.qml @@ -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 |