diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-08-14 18:16:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-14 18:16:30 -0400 |
commit | b6fc786f9aed3f432c4f26504bb2c7c5edc753cc (patch) | |
tree | d461988944adf5b5dd4c104d1ae1683c3b632794 /ext/js | |
parent | 4839503d540adf7b48d0b1d337bef7b7c9b890ad (diff) |
Update dictionary importer progress event for step 6 to occur slightly earlier (#1897)
Diffstat (limited to 'ext/js')
-rw-r--r-- | ext/js/language/dictionary-importer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/language/dictionary-importer.js b/ext/js/language/dictionary-importer.js index 89417ca6..cd1b796b 100644 --- a/ext/js/language/dictionary-importer.js +++ b/ext/js/language/dictionary-importer.js @@ -125,13 +125,13 @@ class DictionaryImporter { this._progressNextStep(requirements.length); const {media} = await this._resolveAsyncRequirements(requirements, archive); - // Add dictionary - const summary = this._createSummary(dictionaryTitle, version, index, {prefixWildcardsSupported}); + // Add dictionary descriptor + this._progressNextStep(termList.length + termMetaList.length + kanjiList.length + kanjiMetaList.length + tagList.length); + const summary = this._createSummary(dictionaryTitle, version, index, {prefixWildcardsSupported}); dictionaryDatabase.bulkAdd('dictionaries', [summary], 0, 1); // Add data - this._progressNextStep(termList.length + termMetaList.length + kanjiList.length + kanjiMetaList.length + tagList.length); const errors = []; const maxTransactionLength = 1000; |