From 4f9e32007417a3d25d56997bb6eef2601ca81425 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 1 May 2020 18:34:23 -0400 Subject: [PATCH] =?UTF-8?q?Click=20on=20account=20with=200=20rooms=20?= =?UTF-8?q?=E2=86=92=20AddChat=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/Base/HTile/HTile.qml | 1 + src/gui/MainPane/AccountsBar.qml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/Base/HTile/HTile.qml b/src/gui/Base/HTile/HTile.qml index f83ac452..d8783939 100644 --- a/src/gui/Base/HTile/HTile.qml +++ b/src/gui/Base/HTile/HTile.qml @@ -18,6 +18,7 @@ HButton { property real contentOpacity: 1 property alias contextMenu: contextMenuLoader.sourceComponent + readonly property alias contextMenuLoader: contextMenuLoader Behavior on topPadding { HNumberAnimation {} } diff --git a/src/gui/MainPane/AccountsBar.qml b/src/gui/MainPane/AccountsBar.qml index f18f7a36..ce19429a 100644 --- a/src/gui/MainPane/AccountsBar.qml +++ b/src/gui/MainPane/AccountsBar.qml @@ -92,7 +92,11 @@ HColumnLayout { contextMenu: AccountContextMenu { userId: model.id } - onLeftClicked: roomList.goToAccount(model.id) + onLeftClicked: { + model.id in roomList.sectionIndice ? + roomList.goToAccount(model.id) : + pageLoader.showPage("AddChat/AddChat", {userId: model.id}) + } } Layout.fillWidth: true