mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix archive search input field focus.
This commit is contained in:
@@ -639,7 +639,9 @@ void Widget::animationCallback() {
|
||||
updateControlsVisibility(true);
|
||||
|
||||
applyFilterUpdate();
|
||||
if (App::wnd()) App::wnd()->setInnerFocus();
|
||||
if (!_filter->hasFocus()) {
|
||||
if (App::wnd()) App::wnd()->setInnerFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1232,6 +1234,9 @@ void Widget::searchInChat(Key chat) {
|
||||
}
|
||||
|
||||
void Widget::setSearchInChat(Key chat, UserData *from) {
|
||||
if (chat.folder()) {
|
||||
chat = Key();
|
||||
}
|
||||
_searchInMigrated = nullptr;
|
||||
if (const auto peer = chat.peer()) {
|
||||
if (const auto migrateTo = peer->migrateTo()) {
|
||||
|
@@ -169,9 +169,7 @@ void TopBarWidget::refreshLang() {
|
||||
}
|
||||
|
||||
void TopBarWidget::onSearch() {
|
||||
if (_activeChat.folder()) {
|
||||
_controller->closeFolder();
|
||||
} else if (_activeChat) {
|
||||
if (_activeChat) {
|
||||
App::main()->searchInChat(_activeChat);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user