mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Cancel search on switching folders.
This commit is contained in:
parent
360366ba9e
commit
a0a9de1d18
1 changed files with 4 additions and 1 deletions
|
@ -655,6 +655,9 @@ void Widget::setupMoreChatsBar() {
|
|||
controller()->activeChatsFilter(
|
||||
) | rpl::start_with_next([=](FilterId id) {
|
||||
storiesToggleExplicitExpand(false);
|
||||
if (!_searchInChat) {
|
||||
cancelSearch();
|
||||
}
|
||||
|
||||
if (!id) {
|
||||
_moreChatsBar = nullptr;
|
||||
|
@ -3345,7 +3348,7 @@ bool Widget::cancelSearch() {
|
|||
if (_suggestions && clearSearchFocus) {
|
||||
setFocus();
|
||||
}
|
||||
return clearingQuery || clearingInChat;
|
||||
return clearingQuery || clearingInChat || clearSearchFocus;
|
||||
}
|
||||
|
||||
void Widget::cancelSearchInChat() {
|
||||
|
|
Loading…
Add table
Reference in a new issue