Remember Space

Save the last space entered so it can be recalled on startup
This commit is contained in:
James Graham
2024-02-10 14:51:57 +00:00
parent 413453dd85
commit 3a4b531edf
3 changed files with 28 additions and 1 deletions

View File

@@ -21,7 +21,14 @@ QQC2.Control {
topPadding: 0
bottomPadding: 0
property string selectedSpaceId
property string selectedSpaceId: RoomManager.lastSpaceId
Connections {
target: RoomManager
function onConnectionChanged() {
// We need to rebind as any previous change will have been overwritten.
selectedSpaceId = RoomManager.lastSpaceId
}
}
property bool showDirectChats: false