Clear the text from the user list filter in the room drawer when the room is changed
This commit is contained in:
@@ -72,9 +72,11 @@ Kirigami.OverlayDrawer {
|
|||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||||
contentItem: Loader {
|
contentItem: Loader {
|
||||||
|
id: loader
|
||||||
active: roomDrawer.drawerOpen
|
active: roomDrawer.drawerOpen
|
||||||
sourceComponent: ColumnLayout {
|
sourceComponent: ColumnLayout {
|
||||||
id: columnLayout
|
id: columnLayout
|
||||||
|
property alias userSearchText: userListSearchField.text
|
||||||
spacing: 0
|
spacing: 0
|
||||||
Kirigami.AbstractApplicationHeader {
|
Kirigami.AbstractApplicationHeader {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -294,6 +296,7 @@ Kirigami.OverlayDrawer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onRoomChanged: {
|
onRoomChanged: {
|
||||||
|
loader.item.userSearchText = ""
|
||||||
if (room == null) {
|
if (room == null) {
|
||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user