Clear the text from the user list filter in the room drawer when the room is changed

This commit is contained in:
James Graham
2022-06-17 18:59:33 +01:00
parent 5bc9362fde
commit 90cee0f437

View File

@@ -72,9 +72,11 @@ Kirigami.OverlayDrawer {
rightPadding: 0
Kirigami.Theme.colorSet: Kirigami.Theme.View
contentItem: Loader {
id: loader
active: roomDrawer.drawerOpen
sourceComponent: ColumnLayout {
id: columnLayout
property alias userSearchText: userListSearchField.text
spacing: 0
Kirigami.AbstractApplicationHeader {
Layout.fillWidth: true
@@ -294,6 +296,7 @@ Kirigami.OverlayDrawer {
}
onRoomChanged: {
loader.item.userSearchText = ""
if (room == null) {
close()
}