Fix #45 Overruling printer into tour state

This commit is contained in:
peteruithoven 2013-12-18 16:56:06 +01:00
parent 8b0b8884ed
commit f077fdd484
2 changed files with 5 additions and 4 deletions

View File

@ -56,12 +56,14 @@ function GrandTour(_name) {
$(this).joyride('set_li', false);
}
}
// Overrule printer to tour mode, pausing status updates
printer.overruleState(Printer.TOUR_STATE);
// bring up thermometer and progressbar to explain them
thermometer.show();
progressbar.show();
message.hide();
};
this.preStepCallback = function(index, tip) {
// console.log("GrandTour >> f:preStepCallback() >> index: " + index);
@ -361,8 +363,6 @@ function HelpTours() {
self.currActiveTour = undefined;
self.tourActive = false;
thermometer.hide();
progressbar.hide();
message.hide();
printer.checkStatus();
}

View File

@ -19,6 +19,7 @@ function Printer() {
Printer.BUFFERING_STATE = "buffering"; // printer is buffering (recieving) data, but not yet printing
Printer.PRINTING_STATE = "printing";
Printer.STOPPING_STATE = "stopping"; // when you stop (abort) a print it prints the endcode
Printer.TOUR_STATE = "tour"; // when in joyride mode
Printer.ON_BEFORE_UNLOAD_MESSAGE = "You're doodle is still being send to the printer, leaving will result in a incomplete 3D print";