From 57a7b567cae9cf5d8bcc682f1b9fea0f3a9fd4e3 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 9 Apr 2021 02:28:31 -0400 Subject: [PATCH] Keys.Account.AtIndex binds: don't focus 1st room Go to the corresponding account settings instead of trying to focus the first room of the target account if there is one. This makes the behavior consistent across expanded and collapsed accounts, and with the Keys.Account.(previous/next) keybinds that were changed to work in this way in commit 4f4bc90faa6c4868552004b5f5cfd5f17f59cfd9. --- src/gui/MainPane/RoomList.qml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gui/MainPane/RoomList.qml b/src/gui/MainPane/RoomList.qml index b78f7492..4bd693af 100644 --- a/src/gui/MainPane/RoomList.qml +++ b/src/gui/MainPane/RoomList.qml @@ -48,12 +48,7 @@ HListView { } function goToAccountNumber(num) { - const index = Object.entries(accountIndice)[num][1] - - model.get(index + 1).type === "Room" ? - currentIndex = index + 1 : - currentIndex = index - + currentIndex = Object.entries(accountIndice)[num][1] showItemLimiter.restart() }