Fix storage stats update error during dictionary deletion (#1106)
This commit is contained in:
parent
48b8041800
commit
5d2edda753
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user