Browse Source

Simplify check for when quality profiles are activated

Should behave the same way.

Contributes to issue CURA-8686.
Ghostkeeper 3 years ago
parent
commit
8d10e1d5a7
1 changed files with 1 additions and 9 deletions
  1. 1 9
      resources/qml/ProfileOverview.qml

+ 1 - 9
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
     {