Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcasper <c.lamboo@ultimaker.com>2022-03-22 13:43:36 +0300
committercasper <c.lamboo@ultimaker.com>2022-03-22 13:43:36 +0300
commitd7cf7ee97d3163ed2bf9e0478af22e62398aef1f (patch)
tree97a6498d8553886ffb016699fa9c70c92133524a
parenta7aa92427e59e1632cc0d69abc808b2cf20d0802 (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.qml12
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