mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06: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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue