mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Merge pull request #1385 from glacambre/fix_getprofile
native.ts: Fix buggy profile detection
This commit is contained in:
commit
6555d2d9c0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue