Add "Add another account" entry to settings menu
To do: replace the bottom-left "add account" button by something else, move the corresponding keybind code away
This commit is contained in:
parent
4cf3a69a92
commit
03349ae33f
|
@ -44,6 +44,7 @@ HDrawer {
|
|||
anchors.fill: parent
|
||||
|
||||
TopBar {
|
||||
roomList: roomList
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user