From 3438184c4cc049fc3bbfbbc33d59f13771741c71 Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Tue, 25 Oct 2022 03:11:53 +0800 Subject: [PATCH] feat: set progress to 1/1 when queue is empty --- src/app.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app.ts b/src/app.ts index 299bed5..890c3d3 100644 --- a/src/app.ts +++ b/src/app.ts @@ -562,6 +562,11 @@ export class App { for (const battle of workQueue) { await step(battle); } + } else { + onStep?.({ + current: 1, + total: 1, + }); } return exported;