Hide intent category selector if there's just 'default' intent

It doesn't make sense to let the user choose then.

Contributes to issue CURA-8849.
This commit is contained in:
Ghostkeeper 2022-06-14 16:12:10 +02:00
parent 6b6f41bfe9
commit aee614ff9b
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -13,6 +13,7 @@ Item
{
id: qualityRow
height: childrenRect.height
visible: intentSelectionRepeater.count > 1 //Only show selector if there's more options than just "default".
RowLayout
{
@ -21,6 +22,7 @@ Item
Repeater
{
id: intentSelectionRepeater
model: Cura.IntentSelectionModel {}
RecommendedQualityProfileSelectorButton