mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 12:25:53 +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 var qualityItem //The quality profile to display here.
|
||||||
property int extruderPosition: -1 //The extruder to display. -1 denotes the global stack.
|
property int extruderPosition: -1 //The extruder to display. -1 denotes the global stack.
|
||||||
|
property bool isQualityItemCurrentlyActivated: qualityItem != null && qualityItem.name == Cura.MachineManager.activeQualityOrQualityChangesName
|
||||||
property bool isQualityItemCurrentlyActivated:
|
|
||||||
{
|
|
||||||
if (qualityItem == null)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return qualityItem.name == Cura.MachineManager.activeQualityOrQualityChangesName;
|
|
||||||
}
|
|
||||||
|
|
||||||
Cura.QualitySettingsModel
|
Cura.QualitySettingsModel
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user