mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
Only preheat the first time the settings where saved
This commit is contained in:
parent
6c7b832a30
commit
a692976be6
@ -8,6 +8,8 @@ var printer = new Printer();
|
|||||||
var thermometer = new Thermometer();
|
var thermometer = new Thermometer();
|
||||||
var settingsWindow = new SettingsWindow();
|
var settingsWindow = new SettingsWindow();
|
||||||
|
|
||||||
|
var firstTimesettingsLoaded = true;
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
console.log("ready");
|
console.log("ready");
|
||||||
|
|
||||||
@ -80,6 +82,9 @@ function settingsLoaded() {
|
|||||||
console.log("settingsLoaded");
|
console.log("settingsLoaded");
|
||||||
console.log("autoWarmUp: ",settings["printer.autoWarmUp"]);
|
console.log("autoWarmUp: ",settings["printer.autoWarmUp"]);
|
||||||
if(settings["printer.autoWarmUp"]) {
|
if(settings["printer.autoWarmUp"]) {
|
||||||
|
if(firstTimesettingsLoaded) {
|
||||||
printer.preheat();
|
printer.preheat();
|
||||||
|
firstTimesettingsLoaded = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user