fix(search): clear search when changing active channel

This commit is contained in:
Jonathan Rainville 2021-07-13 14:14:24 -04:00 committed by Iuri Matias
parent 3e33db039f
commit 3740eda1e6
1 changed files with 8 additions and 1 deletions

View File

@ -52,6 +52,13 @@ Popup {
}
padding: 0
Connections {
target: chatsModel.channelView
onActiveChannelChanged: {
searchInput.text = ""
}
}
Item {
id: searchHeader
width: parent.width
@ -97,7 +104,7 @@ Popup {
background: Rectangle {
color: Style.current.transparent
}
Keys.onReleased: Qt.callLater(searchHeader.searchMessages, searchInput.text)
onTextChanged: Qt.callLater(searchHeader.searchMessages, searchInput.text)
}
Separator {