Fix clearing user search field text when switching rooms

(cherry picked from commit 9ba6b2f0a5)
This commit is contained in:
Tobias Fella
2023-07-23 13:21:11 +02:00
committed by Carl Schwan
parent 5cce3bd692
commit b949092bc6

View File

@@ -80,6 +80,10 @@ Kirigami.OverlayDrawer {
spacing: 0
function clearSearch() {
userListView.headerItem.userListSearchField.text = ""
}
QQC2.ToolBar {
Layout.fillWidth: true
@@ -339,7 +343,7 @@ Kirigami.OverlayDrawer {
onRoomChanged: {
if (loader.active) {
loader.item.userSearchText = ""
loader.item.clearSearch()
loader.item.highlightedUser = -1
}
if (room == null) {