From 097d7b05d2116226a0856d595da64af94801d417 Mon Sep 17 00:00:00 2001 From: Ben McClure Date: Mon, 8 Mar 2021 20:47:11 -0500 Subject: [PATCH] Only set a Display Name for a detected game if it doesn't match the key --- Lib/Launchpad/DetectedGame/DetectedGame.ahk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/Launchpad/DetectedGame/DetectedGame.ahk b/Lib/Launchpad/DetectedGame/DetectedGame.ahk index 46c1029c..861613e0 100644 --- a/Lib/Launchpad/DetectedGame/DetectedGame.ahk +++ b/Lib/Launchpad/DetectedGame/DetectedGame.ahk @@ -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 }