Save/load which accounts are collapsed
This commit is contained in:
parent
3287888a5c
commit
f7d286cdc2
2
TODO.md
2
TODO.md
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user