Browse Source

Intent button was showing when only a single intent is available.
This was caused by visible being overridden.

CURA-8849

j.delarago 2 years ago
parent
commit
0fb2b46677

+ 1 - 1
resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml

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

+ 4 - 1
resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml

@@ -12,8 +12,11 @@ import ".."
 Item
 {
     id: qualityRow
+
+    property bool hasQualityOptions: true
+
     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
     {