mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-25 01:06:16 -04:00
Merge pull request #1786 from zb3/fix-overwritten-output
This commit is contained in:
commit
42ad9a49f3
3 changed files with 69 additions and 1 deletions
|
@ -322,6 +322,28 @@ class WorkerWaiter {
|
|||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels the current bake making it possible to autobake again
|
||||
*/
|
||||
cancelBakeForAutoBake() {
|
||||
if (this.totalOutputs > 1) {
|
||||
this.cancelBake();
|
||||
} else {
|
||||
// In this case the UI changes can be skipped
|
||||
|
||||
for (let i = this.chefWorkers.length - 1; i >= 0; i--) {
|
||||
if (this.chefWorkers[i].active) {
|
||||
this.removeChefWorker(this.chefWorkers[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.inputs = [];
|
||||
this.inputNums = [];
|
||||
this.totalOutputs = 0;
|
||||
this.loadingOutputs = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels the current bake by terminating and removing all ChefWorkers
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue