Intent button was showing when only a single intent is available.

This was caused by visible being overridden.

CURA-8849
This commit is contained in:
j.delarago 2022-06-16 14:05:39 +02:00
parent 1e0236e317
commit 0fb2b46677
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@ Item
RecommendedQualityProfileSelector RecommendedQualityProfileSelector
{ {
width: parent.width width: parent.width
visible: recommendedResolutionSelector.visible hasQualityOptions: recommendedResolutionSelector.visible
} }
RecommendedResolutionSelector RecommendedResolutionSelector

View File

@ -12,8 +12,11 @@ import ".."
Item Item
{ {
id: qualityRow id: qualityRow
property bool hasQualityOptions: true
height: childrenRect.height height: childrenRect.height
visible: intentSelectionRepeater.count > 1 //Only show selector if there's more options than just "default". visible: intentSelectionRepeater.count > 1 && hasQualityOptions //Only show selector if there's more options than just "default".
RowLayout RowLayout
{ {