From 8d10e1d5a7a6905f09fd0d3fefd7076d4338c3f1 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 28 Jan 2022 11:34:44 +0100 Subject: [PATCH] Simplify check for when quality profiles are activated Should behave the same way. Contributes to issue CURA-8686. --- resources/qml/ProfileOverview.qml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/resources/qml/ProfileOverview.qml b/resources/qml/ProfileOverview.qml index 534c261b5f..ebca4ff22e 100644 --- a/resources/qml/ProfileOverview.qml +++ b/resources/qml/ProfileOverview.qml @@ -15,15 +15,7 @@ Cura.TableView property var qualityItem //The quality profile to display here. property int extruderPosition: -1 //The extruder to display. -1 denotes the global stack. - - property bool isQualityItemCurrentlyActivated: - { - if (qualityItem == null) - { - return false; - } - return qualityItem.name == Cura.MachineManager.activeQualityOrQualityChangesName; - } + property bool isQualityItemCurrentlyActivated: qualityItem != null && qualityItem.name == Cura.MachineManager.activeQualityOrQualityChangesName Cura.QualitySettingsModel {