Uncamelcasify EGS game names

pull/202/head^2
Peter Repukat 1 year ago
parent 338f44745f
commit f61971923d

@ -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
} }

@ -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

Loading…
Cancel
Save