Improve handling of OperationErrors.

Make output filter refresh when changing stale or errored checkboxes
This commit is contained in:
j433866 2019-05-15 16:24:49 +01:00
parent 413e80ed3e
commit 0cff7bdd04
3 changed files with 8 additions and 4 deletions

View file

@ -146,11 +146,12 @@ class WorkerWaiter {
if (r.data.error) {
this.app.handleError(r.data.error);
this.manager.output.updateOutputError(r.data.error, inputNum, r.data.progress);
this.workerFinished(currentWorker);
} else if (r.data.progress !== this.manager.recipe.getConfig().length) {
this.manager.output.updateOutputError(r.data.result, inputNum, r.data.progress);
} else {
this.updateOutput(r.data, r.data.inputNum, r.data.bakeId, r.data.progress);
this.workerFinished(currentWorker);
}
this.workerFinished(currentWorker);
break;
case "bakeError":
this.app.handleError(r.data.error);