Handle progressMessage in background waiter.

Don't update tab progress if there's no set recipe
This commit is contained in:
j433866 2019-06-11 10:01:40 +01:00
parent 749ffdd5d1
commit f497dc3170
2 changed files with 4 additions and 1 deletions

View File

@ -68,6 +68,7 @@ class BackgroundWorkerWaiter {
break;
case "optionUpdate":
case "statusMessage":
case "progressMessage":
// Ignore these messages
break;
default:

View File

@ -975,7 +975,9 @@ class OutputWaiter {
}
tabStr = tabStr.slice(0, 200);
this.manager.tabs.updateOutputTabHeader(inputNum, tabStr);
this.manager.tabs.updateOutputTabProgress(inputNum, this.outputs[inputNum].progress, this.manager.worker.recipeConfig.length);
if (this.manager.worker.recipeConfig !== undefined) {
this.manager.tabs.updateOutputTabProgress(inputNum, this.outputs[inputNum].progress, this.manager.worker.recipeConfig.length);
}
const tabItem = this.manager.tabs.getOutputTabItem(inputNum);
if (tabItem) {