diff --git a/wowup-electron/src/app/pages/home/home.component.ts b/wowup-electron/src/app/pages/home/home.component.ts index 6ce64b31..2af4b562 100644 --- a/wowup-electron/src/app/pages/home/home.component.ts +++ b/wowup-electron/src/app/pages/home/home.component.ts @@ -109,7 +109,8 @@ export class HomeComponent implements AfterViewInit, OnDestroy { } private async migrateAddons(clientTypes: WowClientType[]) { - if (!clientTypes || !(await this._wowupService.shouldMigrateAddons())) { + const shouldMigrate = await this._wowupService.shouldMigrateAddons(); + if (!clientTypes || !shouldMigrate) { return clientTypes; } @@ -162,7 +163,7 @@ export class HomeComponent implements AfterViewInit, OnDestroy { }); if (error.innerError instanceof GitHubLimitError) { - const err = error.innerError as GitHubLimitError; + const err = error.innerError; const max = err.rateLimitMax; const reset = new Date(err.rateLimitReset * 1000).toLocaleString(); errorMessage = this._translateService.instant("COMMON.ERRORS.GITHUB_LIMIT_ERROR", { diff --git a/wowup-electron/src/app/services/addons/addon.service.ts b/wowup-electron/src/app/services/addons/addon.service.ts index bfba4339..acddd1b1 100644 --- a/wowup-electron/src/app/services/addons/addon.service.ts +++ b/wowup-electron/src/app/services/addons/addon.service.ts @@ -1269,10 +1269,20 @@ export class AddonService { const addons = this._addonStorage.getAllForClientType(clientType); for (const addon of addons) { await this.backfillAddon(addon); + await this.backfillAddonInstalledFolderList(addon); } } } + private async backfillAddonInstalledFolderList(addon: Addon): Promise { + if (addon.installedFolderList) { + return; + } + + addon.installedFolderList = addon.installedFolders?.split(",") ?? []; + this.saveAddon(addon); + } + public async backfillAddon(addon: Addon): Promise { if (addon.externalIds && this.containsOwnExternalId(addon)) { return;