mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Fix the case when no quality is available
CURA-5044 The tooltip should also show up if there is no quality available.
This commit is contained in:
parent
fcd50b0cf2
commit
d6b270954a
1 changed files with 5 additions and 4 deletions
|
@ -266,10 +266,11 @@ Item
|
|||
Rectangle
|
||||
{
|
||||
id: leftArea
|
||||
width: {
|
||||
if(qualityModel.availableTotalTicks == 0)
|
||||
return 0
|
||||
|
||||
width:
|
||||
{
|
||||
if (qualityModel.availableTotalTicks == 0) {
|
||||
return qualityModel.qualitySliderStepWidth * qualityModel.totalTicks
|
||||
}
|
||||
return qualityModel.qualitySliderStepWidth * qualityModel.qualitySliderAvailableMin - 10
|
||||
}
|
||||
height: parent.height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue