fix(search): clear search when changing active channel
This commit is contained in:
parent
3e33db039f
commit
3740eda1e6
|
@ -52,6 +52,13 @@ Popup {
|
||||||
}
|
}
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: chatsModel.channelView
|
||||||
|
onActiveChannelChanged: {
|
||||||
|
searchInput.text = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: searchHeader
|
id: searchHeader
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -97,7 +104,7 @@ Popup {
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: Style.current.transparent
|
color: Style.current.transparent
|
||||||
}
|
}
|
||||||
Keys.onReleased: Qt.callLater(searchHeader.searchMessages, searchInput.text)
|
onTextChanged: Qt.callLater(searchHeader.searchMessages, searchInput.text)
|
||||||
}
|
}
|
||||||
|
|
||||||
Separator {
|
Separator {
|
||||||
|
|
Loading…
Reference in New Issue