Merge pull request #1385 from glacambre/fix_getprofile

native.ts: Fix buggy profile detection
This commit is contained in:
Oliver Blanthorn 2019-02-25 12:15:24 +00:00 committed by GitHub
commit 6555d2d9c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -474,7 +474,7 @@ export async function getProfile() {
const profilePath = cmdline[profile + 1]
for (let profileName in iniObject) {
let profile = iniObject[profileName]
if (profile.absolutePath == curProfileDir) {
if (profile.absolutePath == profilePath) {
return profile
}
}
@ -517,7 +517,7 @@ export async function getProfile() {
.join("/")
for (let profileName in iniObject) {
let profile = iniObject[profileName]
if (profile.absolutePath == curProfileDir) {
if (profile.absolutePath == path) {
return profile
}
}