0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 01:07:56 +01:00

Only preheat the first time the settings where saved

This commit is contained in:
peteruithoven 2013-09-18 18:56:32 +02:00
parent 6c7b832a30
commit a692976be6

View File

@ -8,6 +8,8 @@ var printer = new Printer();
var thermometer = new Thermometer();
var settingsWindow = new SettingsWindow();
var firstTimesettingsLoaded = true;
$(function() {
console.log("ready");
@ -80,6 +82,9 @@ function settingsLoaded() {
console.log("settingsLoaded");
console.log("autoWarmUp: ",settings["printer.autoWarmUp"]);
if(settings["printer.autoWarmUp"]) {
printer.preheat();
if(firstTimesettingsLoaded) {
printer.preheat();
firstTimesettingsLoaded = false;
}
}
}