Skip to content

Commit

Permalink
Only set a Display Name for a detected game if it doesn't match the key
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcclure committed Mar 9, 2021
1 parent 12c22a7 commit 097d7b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Lib/Launchpad/DetectedGame/DetectedGame.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ class DetectedGame {
UpdateLauncher(launcher) {
modified := false

if (launcher.Platform != this.platform.key) {
launcher.Platform := this.platform.key
if (this.displayName && this.key != this.displayName && launcher.DisplayName != this.displayName) {
launcher.DisplayName := this.displayName
modified := true
}

if (this.displayName && launcher.DisplayName != this.displayName) {
launcher.DisplayName := this.displayName
if (launcher.Platform != this.platform.key) {
launcher.Platform := this.platform.key
modified := true
}

Expand Down

0 comments on commit 097d7b0

Please sign in to comment.