mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 11:39:02 +08:00
Disallow pre-heat temperature of 0 explicitly
Because that signals to the printer that it should cancel pre-heating. Contributes to issue CURA-3161.
This commit is contained in:
parent
253b4bce03
commit
c7793238f7
@ -336,6 +336,10 @@ Column
|
||||
{
|
||||
return false; //Target temperature too high.
|
||||
}
|
||||
if (parseInt(preheatTemperatureInput.text) == 0)
|
||||
{
|
||||
return false; //Setting the temperature to 0 is not allowed (since that cancels the pre-heating).
|
||||
}
|
||||
return true; //Preconditions are met.
|
||||
}
|
||||
anchors.right: parent.right
|
||||
|
Loading…
x
Reference in New Issue
Block a user