mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Prevent activating chats search when in Settings.
This commit is contained in:
parent
59be3d746c
commit
c0664d2d81
1 changed files with 4 additions and 0 deletions
|
@ -650,6 +650,10 @@ not_null<Ui::RpWidget*> WrapWidget::topWidget() const {
|
||||||
|
|
||||||
void WrapWidget::showContent(object_ptr<ContentWidget> content) {
|
void WrapWidget::showContent(object_ptr<ContentWidget> content) {
|
||||||
if (auto old = std::exchange(_content, std::move(content))) {
|
if (auto old = std::exchange(_content, std::move(content))) {
|
||||||
|
if (Ui::InFocusChain(old)) {
|
||||||
|
// Prevent activating dialogs filter field while animating.
|
||||||
|
setFocus();
|
||||||
|
}
|
||||||
old->hide();
|
old->hide();
|
||||||
|
|
||||||
// Content destructor may invoke closeBox() that will try to
|
// Content destructor may invoke closeBox() that will try to
|
||||||
|
|
Loading…
Add table
Reference in a new issue