mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Prevent activating chats search when in Settings.
This commit is contained in:
@@ -650,6 +650,10 @@ not_null<Ui::RpWidget*> WrapWidget::topWidget() const {
|
||||
|
||||
void WrapWidget::showContent(object_ptr<ContentWidget> content) {
|
||||
if (auto old = std::exchange(_content, std::move(content))) {
|
||||
if (Ui::InFocusChain(old)) {
|
||||
// Prevent activating dialogs filter field while animating.
|
||||
setFocus();
|
||||
}
|
||||
old->hide();
|
||||
|
||||
// Content destructor may invoke closeBox() that will try to
|
||||
|
Reference in New Issue
Block a user