mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:48:58 +08:00
Added NOT SUPPORTED profile for UM2++ and quality slider validation if value:-1
CURA-4182
This commit is contained in:
parent
d7ed8244ae
commit
c33bd80818
@ -138,8 +138,13 @@ Item
|
||||
|
||||
function reset () {
|
||||
qualityModel.clear()
|
||||
qualityModel.totalTicks = Cura.ProfilesModel.rowCount() - 1 // minus one, because slider starts from 0
|
||||
qualityModel.availableTotalTicks = -1
|
||||
|
||||
// check, the ticks count cannot be less than zero
|
||||
if(Cura.ProfilesModel.rowCount() != 0)
|
||||
qualityModel.totalTicks = Cura.ProfilesModel.rowCount() - 1 // minus one, because slider starts from 0
|
||||
else
|
||||
qualityModel.totalTicks = 0
|
||||
}
|
||||
}
|
||||
|
||||
@ -240,8 +245,8 @@ Item
|
||||
enabled: qualityModel.availableTotalTicks > 0
|
||||
updateValueWhileDragging : false
|
||||
|
||||
minimumValue: qualityModel.qualitySliderAvailableMin
|
||||
maximumValue: qualityModel.qualitySliderAvailableMax
|
||||
minimumValue: qualityModel.qualitySliderAvailableMin >= 0 ? qualityModel.qualitySliderAvailableMin : 0
|
||||
maximumValue: qualityModel.qualitySliderAvailableMax >= 0 ? qualityModel.qualitySliderAvailableMax : 0
|
||||
stepSize: 1
|
||||
|
||||
value: qualityModel.activeQualityId
|
||||
|
@ -0,0 +1,15 @@
|
||||
[general]
|
||||
version = 2
|
||||
name = Not Supported
|
||||
definition = ultimaker2_plus
|
||||
|
||||
[metadata]
|
||||
weight = 0
|
||||
type = quality
|
||||
quality_type = normal
|
||||
material = generic_tpu_ultimaker2_plus_0.8_mm
|
||||
supported = False
|
||||
setting_version = 3
|
||||
|
||||
[values]
|
||||
|
Loading…
x
Reference in New Issue
Block a user