mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Reset chosen filter on Escape.
This commit is contained in:
parent
8cdf8d5edc
commit
aa88ee6d88
1 changed files with 5 additions and 1 deletions
|
@ -686,7 +686,11 @@ void Widget::escape() {
|
|||
controller()->closeFolder();
|
||||
} else if (!onCancelSearch()
|
||||
|| (!_searchInChat && !App::main()->selectingPeer())) {
|
||||
emit cancelled();
|
||||
if (controller()->activeChatEntryCurrent().key) {
|
||||
emit cancelled();
|
||||
} else if (controller()->activeChatsFilterCurrent()) {
|
||||
controller()->setActiveChatsFilter(FilterId(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue