mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 20:40:18 +00:00
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…
x
Reference in New Issue
Block a user