mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 12:05:57 +08:00
Simplify check for when quality profiles are activated
Should behave the same way. Contributes to issue CURA-8686.
This commit is contained in:
parent
92ed791f53
commit
8d10e1d5a7
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user