Skip to content

Commit

Permalink
HTML: Fix report progress off by one
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrosinger committed Oct 16, 2024
1 parent 1dcc230 commit d6356d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/formats/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export class HtmlImporter extends FormatImporter {
ctx.reportProgress(0, files.length);
for (let i = 0; i < files.length; i++) {
if (ctx.isCancelled()) return;
ctx.reportProgress(i, files.length);

const file = files[i];
const tFile = await this.processFile(ctx, folder, file);
Expand All @@ -91,6 +90,8 @@ export class HtmlImporter extends FormatImporter {
: file.name,
{ file, tFile });
}

ctx.reportProgress(i+1, files.length);
}

const { metadataCache } = this.app;
Expand Down

0 comments on commit d6356d6

Please sign in to comment.