Fix storage stats update error during dictionary deletion (#1106)

This commit is contained in:
toasted-nutbread 2020-12-13 11:29:32 -05:00 committed by GitHub
parent 48b8041800
commit 5d2edda753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -184,7 +184,7 @@ class DictionaryEntry {
} }
class DictionaryController { class DictionaryController {
constructor(settingsController, modalController, storageController, statusFooter=null) { constructor(settingsController, modalController, storageController, statusFooter) {
this._settingsController = settingsController; this._settingsController = settingsController;
this._modalController = modalController; this._modalController = modalController;
this._storageController = storageController; this._storageController = storageController;

View File

@ -23,7 +23,7 @@
*/ */
class DictionaryImportController { class DictionaryImportController {
constructor(settingsController, modalController, storageController, statusFooter=null) { constructor(settingsController, modalController, storageController, statusFooter) {
this._settingsController = settingsController; this._settingsController = settingsController;
this._modalController = modalController; this._modalController = modalController;
this._storageController = storageController; this._storageController = storageController;

View File

@ -83,10 +83,10 @@ async function setupEnvironmentInfo() {
const profileController = new ProfileController(settingsController, modalController); const profileController = new ProfileController(settingsController, modalController);
profileController.prepare(); profileController.prepare();
const dictionaryController = new DictionaryController(settingsController, modalController, storageController); const dictionaryController = new DictionaryController(settingsController, modalController, storageController, null);
dictionaryController.prepare(); dictionaryController.prepare();
const dictionaryImportController = new DictionaryImportController(settingsController, modalController, storageController); const dictionaryImportController = new DictionaryImportController(settingsController, modalController, storageController, null);
dictionaryImportController.prepare(); dictionaryImportController.prepare();
const ankiController = new AnkiController(settingsController); const ankiController = new AnkiController(settingsController);

View File

@ -74,7 +74,7 @@ async function setupGenericSettingsController(genericSettingController) {
const storageController = new StorageController(); const storageController = new StorageController();
storageController.prepare(); storageController.prepare();
const dictionaryController = new DictionaryController(settingsController, modalController, statusFooter); const dictionaryController = new DictionaryController(settingsController, modalController, storageController, statusFooter);
dictionaryController.prepare(); dictionaryController.prepare();
const dictionaryImportController = new DictionaryImportController(settingsController, modalController, storageController, statusFooter); const dictionaryImportController = new DictionaryImportController(settingsController, modalController, storageController, statusFooter);