feat: set progress to 1/1 when queue is empty

main
spacemeowx2 2022-10-25 03:11:53 +08:00
parent d83118aab3
commit 3438184c4c
1 changed files with 5 additions and 0 deletions

View File

@ -562,6 +562,11 @@ export class App {
for (const battle of workQueue) {
await step(battle);
}
} else {
onStep?.({
current: 1,
total: 1,
});
}
return exported;