Update dictionary importer progress event for step 6 to occur slightly earlier (#1897)
This commit is contained in:
parent
4839503d54
commit
b6fc786f9a
@ -125,13 +125,13 @@ class DictionaryImporter {
|
|||||||
this._progressNextStep(requirements.length);
|
this._progressNextStep(requirements.length);
|
||||||
const {media} = await this._resolveAsyncRequirements(requirements, archive);
|
const {media} = await this._resolveAsyncRequirements(requirements, archive);
|
||||||
|
|
||||||
// Add dictionary
|
// Add dictionary descriptor
|
||||||
const summary = this._createSummary(dictionaryTitle, version, index, {prefixWildcardsSupported});
|
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);
|
dictionaryDatabase.bulkAdd('dictionaries', [summary], 0, 1);
|
||||||
|
|
||||||
// Add data
|
// Add data
|
||||||
this._progressNextStep(termList.length + termMetaList.length + kanjiList.length + kanjiMetaList.length + tagList.length);
|
|
||||||
const errors = [];
|
const errors = [];
|
||||||
const maxTransactionLength = 1000;
|
const maxTransactionLength = 1000;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user