From efdcc8f881b986ea7d4126ab870d5e7436c66296 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Sun, 8 Jan 2023 16:00:29 +0100 Subject: [PATCH] Uncamelcasify EGS game names --- GlosSIConfig/qml/EGSSelectDialog.qml | 2 +- GlosSIConfig/qml/ShortcutProps.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GlosSIConfig/qml/EGSSelectDialog.qml b/GlosSIConfig/qml/EGSSelectDialog.qml index bc0e2a1..0f06d17 100644 --- a/GlosSIConfig/qml/EGSSelectDialog.qml +++ b/GlosSIConfig/qml/EGSSelectDialog.qml @@ -189,7 +189,7 @@ Dialog { anchors.verticalCenter: parent.verticalCenter spacing: 2 Label { - text: modelData.InstallLocation.split('/').pop().split('\\').pop() + text: modelData.InstallLocation.split('/').pop().split('\\').pop().replace(/([a-z])([A-Z])/g, '$1 $2') font.pixelSize: 18 font.bold: true } diff --git a/GlosSIConfig/qml/ShortcutProps.qml b/GlosSIConfig/qml/ShortcutProps.qml index aea927d..f5397ab 100644 --- a/GlosSIConfig/qml/ShortcutProps.qml +++ b/GlosSIConfig/qml/ShortcutProps.qml @@ -374,7 +374,7 @@ Item { id: egsSelectDialog onConfirmed: function(modelData) { if (nameInput.text == "") { - nameInput.text = modelData.InstallLocation.split('/').pop().split('\\').pop() + nameInput.text = modelData.InstallLocation.split('/').pop().split('\\').pop().replace(/([a-z])([A-Z])/g, '$1 $2') } pathInput.text = "com.epicgames.launcher://apps/" + modelData.NamespaceId