mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +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) {
|
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
|
||||||
|
Reference in New Issue
Block a user