Remove step and progress from Chef.

It's now all handled by the App!
This commit is contained in:
j433866 2019-06-04 14:02:45 +01:00
parent 0e5944e9c6
commit 31a3af1f84
6 changed files with 56 additions and 79 deletions

View file

@ -73,16 +73,17 @@ class ControlsWaiter {
// Reset status using cancelBake
this.manager.worker.cancelBake(true, false);
const activeTab = this.manager.input.getActiveTab();
if (this.manager.output.outputs[activeTab].progress === false){
this.app.progress = 0;
} else {
this.app.progress = this.manager.output.outputs[activeTab].progress;
let progress = 0;
if (this.manager.output.outputs[activeTab].progress !== false) {
progress = this.manager.output.outputs[activeTab].progress;
}
this.manager.input.inputWorker.postMessage({
action: "step",
data: activeTab
data: {
activeTab: activeTab,
progress: progress + 1
}
});
}