mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:39:02 +08: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
@ -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…
x
Reference in New Issue
Block a user