Save/load which accounts are collapsed

This commit is contained in:
miruka 2019-07-21 09:26:47 -04:00
parent 3287888a5c
commit f7d286cdc2
2 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,8 @@
- Unfinished work in button-refactor branch - Unfinished work in button-refactor branch
- Button can get "hoverEnabled: false" to let HoverHandlers work - Button can get "hoverEnabled: false" to let HoverHandlers work
- Room Sidepane - Room Sidepane
- Hide when window too small
- Also save/load its size
- When qml syntax highlighting supports string interpolation, use them - When qml syntax highlighting supports string interpolation, use them
- Fixes - Fixes

View File

@ -12,6 +12,15 @@ Column {
property var userInfo: users.find(model.userId) property var userInfo: users.find(model.userId)
property bool expanded: true property bool expanded: true
Component.onCompleted: {
expanded = ! window.uiState.collapseAccounts[model.userId]
}
onExpandedChanged: {
window.uiState.collapseAccounts[model.userId] = ! expanded
window.uiStateChanged()
}
HInteractiveRectangle { HInteractiveRectangle {
width: parent.width width: parent.width
height: childrenRect.height height: childrenRect.height