2
0
mirror of https://github.com/Alia5/GlosSI.git synced 2024-11-18 15:26:09 +00:00

Uncamelcasify EGS game names

This commit is contained in:
Peter Repukat 2023-01-08 16:00:29 +01:00
parent 9b2c57b0db
commit efdcc8f881
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ Dialog {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: 2
Label { 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.pixelSize: 18
font.bold: true font.bold: true
} }

View File

@ -374,7 +374,7 @@ Item {
id: egsSelectDialog id: egsSelectDialog
onConfirmed: function(modelData) { onConfirmed: function(modelData) {
if (nameInput.text == "") { 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/" pathInput.text = "com.epicgames.launcher://apps/"
+ modelData.NamespaceId + modelData.NamespaceId