mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Show UnsupportedProfileIndication if list of quality types is empty
And otherwise show the intent and quality level selectors. This is currently quite broken because the list of quality levels is not correct. It should only show a quality type if it is supported by all extruders. Contributes to issue CURA-8849.
This commit is contained in:
parent
5c15ac68b8
commit
b18cb1f649
2 changed files with 14 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
//Copyright (c) 2022 Ultimaker B.V.
|
||||
//Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.10
|
||||
|
||||
|
@ -39,13 +39,23 @@ Item
|
|||
RecommendedQualityProfileSelector
|
||||
{
|
||||
width: parent.width
|
||||
|
||||
visible: recommendedResolutionSelector.visible
|
||||
}
|
||||
|
||||
RecommendedResolutionSelector
|
||||
{
|
||||
id: recommendedResolutionSelector
|
||||
width: parent.width
|
||||
}
|
||||
|
||||
UnsupportedProfileIndication
|
||||
{
|
||||
width: parent.width
|
||||
|
||||
visible: !recommendedResolutionSelector.visible
|
||||
}
|
||||
|
||||
//Line between the sections.
|
||||
Rectangle
|
||||
{
|
||||
|
|
|
@ -15,6 +15,8 @@ Item
|
|||
property string _previousResolution: "" //Internal variable to detect changes.
|
||||
Component.onCompleted: _previousResolution = Cura.MachineManager.activeQualityType;
|
||||
|
||||
visible: visibilityPreset.count > 0 //Only show if there are quality types to select from.
|
||||
|
||||
Cura.IconWithText
|
||||
{
|
||||
id: resolutionTitle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue