Simplify check for when quality profiles are activated

Should behave the same way.

Contributes to issue CURA-8686.
This commit is contained in:
Ghostkeeper 2022-01-28 11:34:44 +01:00
parent 92ed791f53
commit 8d10e1d5a7
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -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
{