Also use central pre-heat time when sending time to printer

Oops.

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-07 16:32:36 +01:00
parent 1a902b21bb
commit 8e25a1c73f
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -401,7 +401,7 @@ Column
onClicked:
{
connectedPrinter.preheatBed(preheatTemperatureInput.text, 900);
connectedPrinter.preheatBed(preheatTemperatureInput.text, connectedPrinter.preheatBedTimeout);
var now = new Date();
var end_time = new Date();
end_time.setTime(now.getTime() + connectedPrinter.preheatBedTimeout * 1000); //*1000 because time is in milliseconds here.