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:
Ghostkeeper 2017-02-16 14:20:35 +01:00
parent 253b4bce03
commit c7793238f7
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -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