From aee614ff9b205e8cddd3b0c3c87858524fc6e926 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 14 Jun 2022 16:12:10 +0200 Subject: [PATCH] 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. --- .../Recommended/RecommendedQualityProfileSelector.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml index 569cf7f7d0..6bcca955d1 100644 --- a/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml +++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml @@ -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