Fix clearing user search field text when switching rooms
This commit is contained in:
committed by
Carl Schwan
parent
f8d3e25f8e
commit
9ba6b2f0a5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user