Add easy way to switch between accounts

Related to #121
This commit is contained in:
Carl Schwan
2020-12-05 00:26:37 +01:00
parent 7d8e344842
commit aaa0024fd6

View File

@@ -193,4 +193,20 @@ Kirigami.ScrollablePage {
RoomListContextMenu {}
}
}
footer: RowLayout {
visible: accountListTab.count > 1
height: visible ? accountListTab.implicitHeight : 0
Repeater {
id: accountListTab
model: AccountListModel { }
delegate: QQC2.TabButton {
checkable: true
checked: Controller.activeConnection.user.id === model.connection.user.id
onClicked: Controller.activeConnection = model.connection
Layout.fillWidth: true
text: model.user.id
}
}
}
}