diff --git a/js_src/main.js b/js_src/main.js index a4672a9..bfb8301 100644 --- a/js_src/main.js +++ b/js_src/main.js @@ -61,7 +61,6 @@ $(function() { initButtonBehavior(); initKeyboard(); initVerticalShapes(); - if (!clientInfo.isSmartphone) initHelp(); thermometer.init($("#thermometerCanvas"), $("#thermometerContainer")); progressbar.init($("#progressbarCanvas"), $("#progressbarCanvasContainer")); @@ -142,12 +141,18 @@ function showOrHideThermo() { function settingsLoaded() { console.log("settingsLoaded"); console.log("autoHeatup: ",settings["printer.heatup.enabled"]); - if(settings["printer.heatup.enabled"]) { - if(firstTimeSettingsLoaded) { + if(firstTimeSettingsLoaded) { + if(settings["printer.heatup.enabled"]) { printer.preheat(); - firstTimeSettingsLoaded = false; } + console.log("doodle3d.tour.enabled: ",settings["doodle3d.tour.enabled"]); + if(settings["doodle3d.tour.enabled"] && !clientInfo.isSmartphone) { + console.log("show tour"); + initHelp(); + } + firstTimeSettingsLoaded = false; } + } function setDebugText(text) { diff --git a/www/settings.html b/www/settings.html index 2e73284..ae05d50 100644 --- a/www/settings.html +++ b/www/settings.html @@ -117,6 +117,7 @@ px

+