Skip to content

Commit

Permalink
Remove game version toc warning
Browse files Browse the repository at this point in the history
Fix a couple buttons
  • Loading branch information
jliddev committed May 2, 2024
1 parent 4ec6fb8 commit 59c3193
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
14 changes: 7 additions & 7 deletions wowup-electron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions wowup-electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wowup-cf",
"version": "2.12.0-beta.4",
"version": "2.12.0-beta.5",
"private": true,
"description": "World of Warcraft addon updater",
"keywords": [
Expand Down Expand Up @@ -72,7 +72,7 @@
"pushy-electron": "1.0.11",
"rxjs": "7.8.1",
"win-ca": "3.5.1",
"wowup-lib-core": "1.0.4",
"wowup-lib-core": "1.0.5",
"yauzl": "2.10.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export class CurseAddonProvider extends AddonProvider {

const targetToc = this._tocService.getTocForGameType2(addonFolder.name, addonFolder.tocs, installation.clientType);
if (!targetToc) {
console.error(cfAddon.name, addonFolder.tocs);
console.error('targetToc undefined', cfAddon.name, addonFolder.tocs);
throw new TocNotFoundError("Target toc not found");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h4>Error</h4>
</div>
</div>
<div *ngIf="ready === true" mat-dialog-actions>
<button class="wu-btn" [disabled]="isInstalling" (click)="onClose()">
<button class="wu-btn wu-btn-flat mr-2" [disabled]="isInstalling" (click)="onClose()">
{{ "DIALOGS.INSTALL_FROM_PROTOCOL.CANCEL_BUTTON" | translate }}
</button>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1 mat-dialog-title>{{ data.title }}</h1>
</section>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button class="wu-btn" (click)="onConfirm(false)">
<button class="wu-btn wu-btn-flat mr-2" (click)="onConfirm(false)">
{{ "DIALOGS.CONFIRM.NEGATIVE_BUTTON" | translate }}
</button>
<button class="wu-btn wu-btn-primary" cdkFocusInitial (click)="onConfirm(true)">
Expand Down
3 changes: 1 addition & 2 deletions wowup-electron/src/app/services/addons/addon.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,6 @@ export class AddonService {
addons: Addon[],
installation: WowInstallation,
): Promise<void> {

for (const result of addonSearchResults) {
const addon = addons.find((addon) => this.addonMatchesSearchResult(addon, result));
if (!addon) {
Expand Down Expand Up @@ -1396,7 +1395,7 @@ export class AddonService {
const targetToc = this._tocService.getTocForGameType2(maf.name, maf.tocs, installation.clientType);
if (targetToc === undefined) {
console.warn("toc file undefined", maf, installation.clientType);
maf.matchingAddon.warningType = AddonWarningType.GameVersionTocMissing;
// maf.matchingAddon.warningType = AddonWarningType.GameVersionTocMissing;
return;
}

Expand Down
2 changes: 2 additions & 0 deletions wowup-electron/src/app/services/wowup/patch-notes.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const CHANGELOGS: ChangeLog[] = [
<h4>Features</h4>
<ul>
<li>Add Cataclysm</li>
<h4>Changes</h4>
<li>Remove minor warning for folders not containing exact interface match</li>
</ul>
`,
},
Expand Down

0 comments on commit 59c3193

Please sign in to comment.