fix(search): clear search when changing active channel
This commit is contained in:
parent
3e33db039f
commit
3740eda1e6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue