diff --git a/CHANGELOG.md b/CHANGELOG.md index 318eeed3ee..ca88504bc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. ### Fixed * Bug with sorting in list view * [Issue 666](https://github.com/SteamGridDB/steam-rom-manager/issues/666) +* Two bugs with exception putback ability ## 2.5.4 ### Added diff --git a/src/models/preview.model.ts b/src/models/preview.model.ts index 5124f90630..5feede3f39 100644 --- a/src/models/preview.model.ts +++ b/src/models/preview.model.ts @@ -77,6 +77,7 @@ export interface PreviewDataApp { onlineProviders: OnlineProviderType[], startInDirectory: string, executableLocation: string, + filePath: string, title: string, extractedTitle: string, argumentString: string, diff --git a/src/renderer/components/preview.component.ts b/src/renderer/components/preview.component.ts index fcb92cc79f..d38ac3dfd0 100644 --- a/src/renderer/components/preview.component.ts +++ b/src/renderer/components/preview.component.ts @@ -463,8 +463,6 @@ export class PreviewComponent implements OnDestroy { this.refreshImages(this.previewData[steamDirectory][userId].apps[appId]); } this.closeDetails(); - } else { - console.log("Details app", this.detailsApp,this.matchFix ) } } @@ -585,6 +583,7 @@ export class PreviewComponent implements OnDestroy { const putBackKeys = Object.keys(this.excludePutBacks).filter(putBackKey=>this.excludePutBacks[putBackKey]); for(const putBackKey of putBackKeys) { this.userExceptionsService.putBack(putBackKey); + delete this.excludePutBacks[putBackKey]; } this.cancelExcludes(); this.generatePreviewData(); @@ -656,6 +655,13 @@ export class PreviewComponent implements OnDestroy { return Object.keys(apps).sort((a,b)=>(apps[a][this.listSortBy as keyof PreviewDataApp] as string).localeCompare(apps[b][this.listSortBy as keyof PreviewDataApp] as string)) } + niceAppTitle(app: PreviewDataApp) { + if(superTypesMap[app.parserType] == 'ArtworkOnly') { + return app.title + } + return `${app.title} (${app.filePath})` + } + async exportSelection() { await this.previewService.exportSelection(); } diff --git a/src/renderer/services/preview.service.ts b/src/renderer/services/preview.service.ts index b83b220115..48877b3a39 100644 --- a/src/renderer/services/preview.service.ts +++ b/src/renderer/services/preview.service.ts @@ -564,7 +564,7 @@ export class PreviewService { if (previewData[config.steamDirectory][userAccount.accountID] === undefined) { previewData[config.steamDirectory][userAccount.accountID] = { username: userAccount.name, - excluded: config.excluded, + excluded: data.map(x=>x.excluded).reduce((x,y)=>x.concat(y),[]), apps: {} }; } @@ -668,6 +668,7 @@ export class PreviewService { onlineProviders: config.imageProviders, drmProtect: config.drmProtect, argumentString: file.argumentString, + filePath: file.filePath, title: file.finalTitle, extractedTitle: file.extractedTitle, steamInputEnabled: config.steamInputEnabled, diff --git a/src/renderer/styles/preview.component.scss b/src/renderer/styles/preview.component.scss index 55846bbe2b..5e9cb3afcb 100644 --- a/src/renderer/styles/preview.component.scss +++ b/src/renderer/styles/preview.component.scss @@ -119,7 +119,10 @@ @include button(); @include clickButtonColor(click-button); } - + .title { + margin-left: 1em; + color: var(--color-preview-text); + } .imageCounter { color: var(--color-preview-text); diff --git a/src/renderer/templates/preview.component.html b/src/renderer/templates/preview.component.html index 831c7cdba6..2e7f28701b 100644 --- a/src/renderer/templates/preview.component.html +++ b/src/renderer/templates/preview.component.html @@ -23,6 +23,15 @@

Add your games to Steam

Filters
+
+ Fix Match +
+
+ Manage Excludes +
+
+ Select Artwork +
Add your games to Steam
- Fix match for: {{ detailsApp ? detailsApp.app.title : "" }} + {{ detailsApp ? niceAppTitle(detailsApp.app) : "" }}
@@ -107,7 +116,7 @@

Add your games to Steam

- Choose artwork for {{currentApp.app.title}} + {{currentApp ? niceAppTitle(currentApp.app) : ""}}