summaryrefslogtreecommitdiff
path: root/ext/js/language
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-08-31 21:42:18 -0400
committerGitHub <noreply@github.com>2021-08-31 21:42:18 -0400
commit1599ec1f15ef02e5687fbfc4ad15dd55b019ee70 (patch)
tree7c42d74d3487e8934de108739ad437f0cdc3fc86 /ext/js/language
parent02194fcb9f5dfd61482b6d3814e395a1225c8a9b (diff)
Fix dictionary import total progress (#1921)
* Fix incorrect total count for final step of dictionary import * Update tests to validate progress args
Diffstat (limited to 'ext/js/language')
-rw-r--r--ext/js/language/dictionary-importer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/language/dictionary-importer.js b/ext/js/language/dictionary-importer.js
index cd1b796b..98cddf76 100644
--- a/ext/js/language/dictionary-importer.js
+++ b/ext/js/language/dictionary-importer.js
@@ -126,7 +126,7 @@ class DictionaryImporter {
const {media} = await this._resolveAsyncRequirements(requirements, archive);
// Add dictionary descriptor
- this._progressNextStep(termList.length + termMetaList.length + kanjiList.length + kanjiMetaList.length + tagList.length);
+ this._progressNextStep(termList.length + termMetaList.length + kanjiList.length + kanjiMetaList.length + tagList.length + media.length);
const summary = this._createSummary(dictionaryTitle, version, index, {prefixWildcardsSupported});
dictionaryDatabase.bulkAdd('dictionaries', [summary], 0, 1);