Handle progressMessage in background waiter.
Don't update tab progress if there's no set recipe
This commit is contained in:
parent
749ffdd5d1
commit
f497dc3170
2 changed files with 4 additions and 1 deletions
|
@ -68,6 +68,7 @@ class BackgroundWorkerWaiter {
|
||||||
break;
|
break;
|
||||||
case "optionUpdate":
|
case "optionUpdate":
|
||||||
case "statusMessage":
|
case "statusMessage":
|
||||||
|
case "progressMessage":
|
||||||
// Ignore these messages
|
// Ignore these messages
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -975,7 +975,9 @@ class OutputWaiter {
|
||||||
}
|
}
|
||||||
tabStr = tabStr.slice(0, 200);
|
tabStr = tabStr.slice(0, 200);
|
||||||
this.manager.tabs.updateOutputTabHeader(inputNum, tabStr);
|
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);
|
const tabItem = this.manager.tabs.getOutputTabItem(inputNum);
|
||||||
if (tabItem) {
|
if (tabItem) {
|
||||||
|
|
Loading…
Reference in a new issue