launcher: ensure .config extension on saved file

This commit is contained in:
bordun 2020-04-11 15:46:59 +02:00
parent 283d9a3869
commit 8a9156c337

View file

@ -54,6 +54,7 @@ class Settings {
}).then((file)=>{
if (file.canceled || !file.filePath) return
this.configPath = file.filePath
if (this.configPath.split('.').pop() !== 'config') this.configPath += '.config'
this.save()
})