mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Store default pre-heat time in central location
Its default is 900s or 15 minutes. QML now requests the time-out time and sends it on to the printer. Contributes to issue CURA-3161.
This commit is contained in:
parent
d705fb1d76
commit
1a902b21bb
3 changed files with 9 additions and 3 deletions
|
@ -404,7 +404,7 @@ Column
|
|||
connectedPrinter.preheatBed(preheatTemperatureInput.text, 900);
|
||||
var now = new Date();
|
||||
var end_time = new Date();
|
||||
end_time.setTime(now.getTime() + 900 * 1000); //*1000 because time is in milliseconds here.
|
||||
end_time.setTime(now.getTime() + connectedPrinter.preheatBedTimeout * 1000); //*1000 because time is in milliseconds here.
|
||||
preheatCountdownTimer.endTime = end_time;
|
||||
preheatCountdownTimer.start();
|
||||
preheatCountdownTimer.update(); //Update once before the first timer is triggered.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue