From 4f4bc90faa6c4868552004b5f5cfd5f17f59cfd9 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 5 Jan 2021 11:11:24 -0400 Subject: [PATCH] Don't focus 1st room when clicking on account bar When clicking on an account in the top account bar or using the Keys.Account.(previous/next) keybinds, go to the corresponding account settings instead of trying to focus the first room of that account if there is one: user might not want to clear the read marker of any random room that is out of view and happens to be the first in the list. --- src/gui/MainPane/RoomList.qml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gui/MainPane/RoomList.qml b/src/gui/MainPane/RoomList.qml index d055ff2d..27b8010b 100644 --- a/src/gui/MainPane/RoomList.qml +++ b/src/gui/MainPane/RoomList.qml @@ -43,11 +43,7 @@ HListView { } function goToAccount(userId) { - accountIndice[userId] + 1 <= model.count -1 && - model.get(accountIndice[userId] + 1).type === "Room" ? - currentIndex = accountIndice[userId] + 1 : currentIndex = accountIndice[userId] - showItemLimiter.restart() }