From 73f14cac8eafe6d1a9f84003756dc3f5e9622f3b Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 21 Mar 2020 15:02:37 -0400 Subject: [PATCH] Fix room pane header buttons onClicked --- src/gui/Pages/Chat/RoomPane/RoomPane.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/Pages/Chat/RoomPane/RoomPane.qml b/src/gui/Pages/Chat/RoomPane/RoomPane.qml index 18ed4eed..7529a080 100644 --- a/src/gui/Pages/Chat/RoomPane/RoomPane.qml +++ b/src/gui/Pages/Chat/RoomPane/RoomPane.qml @@ -45,9 +45,9 @@ MultiviewPane { enabled: ["back", "members", "settings"].includes(modelData) onClicked: - modelData === "back" ? - roomPane.toggleFocus() : - swipeView.currentIndex = Math.min(index, 1) + modelData === "back" ? roomPane.toggleFocus() : + modelData === "members" ? swipeView.currentIndex = 0 : + swipeView.currentIndex = 1 Behavior on width { enabled: modelData === "back"