diff --git a/src/gui/MainPane/MainPane.qml b/src/gui/MainPane/MainPane.qml index 38fb0945..ebb3e146 100644 --- a/src/gui/MainPane/MainPane.qml +++ b/src/gui/MainPane/MainPane.qml @@ -44,6 +44,7 @@ HDrawer { anchors.fill: parent TopBar { + roomList: roomList Layout.fillWidth: true } diff --git a/src/gui/MainPane/TopBar.qml b/src/gui/MainPane/TopBar.qml index a9de992f..53be986e 100644 --- a/src/gui/MainPane/TopBar.qml +++ b/src/gui/MainPane/TopBar.qml @@ -7,6 +7,8 @@ import ".." import "../Base" Rectangle { + property RoomList roomList + clip: true implicitHeight: theme.baseElementsHeight color: theme.mainPane.topBar.background @@ -25,6 +27,15 @@ Rectangle { id: settingsMenu y: parent.height + HMenuItem { + icon.name: "add-account" + text: qsTr("Add another account") + onTriggered: { + pageLoader.show("Pages/AddAccount/AddAccount.qml") + roomList.startCorrectItemSearch() + } + } + HMenuItem { icon.name: "more-settings" text: qsTr("Open configuration folder")