mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:35:53 +08:00
Don't check for min/max temperature if we have no min/max
If we have no minimum/maximum bed temperature, the property returns 'None'. Contributes to issue CURA-3161.
This commit is contained in:
parent
e9b30daad6
commit
0b10df01b0
@ -340,11 +340,11 @@ Column
|
|||||||
{
|
{
|
||||||
return true; //Can always cancel if the timer is running.
|
return true; //Can always cancel if the timer is running.
|
||||||
}
|
}
|
||||||
if (parseInt(preheatTemperatureInput.text) < parseInt(bedTemperature.properties.minimum_value))
|
if (bedTemperature.properties.minimum_value != "None" && parseInt(preheatTemperatureInput.text) < parseInt(bedTemperature.properties.minimum_value))
|
||||||
{
|
{
|
||||||
return false; //Target temperature too low.
|
return false; //Target temperature too low.
|
||||||
}
|
}
|
||||||
if (parseInt(preheatTemperatureInput.text) > parseInt(bedTemperature.properties.maximum_value))
|
if (bedTemperature.properties.maximum_value != "None" && parseInt(preheatTemperatureInput.text) > parseInt(bedTemperature.properties.maximum_value))
|
||||||
{
|
{
|
||||||
return false; //Target temperature too high.
|
return false; //Target temperature too high.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user