Fix clearing user search field text when switching rooms

This commit is contained in:
Tobias Fella
2023-07-23 13:21:11 +02:00
committed by Carl Schwan
parent f8d3e25f8e
commit 9ba6b2f0a5

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) {