Fix incorrect account switching keybind order
The keybinds to switch to the first room in account number X did not behave properly when the accounts weren't ordered lexically.
This commit is contained in:
parent
3564e7a571
commit
93eba7ce92
|
@ -52,7 +52,7 @@ HListView {
|
||||||
}
|
}
|
||||||
|
|
||||||
function goToAccountNumber(num) {
|
function goToAccountNumber(num) {
|
||||||
const index = Object.entries(accountIndice).sort()[num][1]
|
const index = Object.entries(accountIndice)[num][1]
|
||||||
|
|
||||||
model.get(index + 1).type === "Room" ?
|
model.get(index + 1).type === "Room" ?
|
||||||
currentIndex = index + 1 :
|
currentIndex = index + 1 :
|
||||||
|
|
Loading…
Reference in New Issue
Block a user