Removed event filter from input field in edit peer info box on close.

This commit is contained in:
23rd 2024-08-05 18:53:24 +03:00 committed by John Preston
parent 6148fb9474
commit c985b77a48

View file

@ -620,13 +620,17 @@ object_ptr<Ui::RpWidget> Controller::createTitleEdit() {
local.x() + emojiToggle->width() * 3);
};
base::install_event_filter(container, [=](not_null<QEvent*> event) {
const auto type = event->type();
if (type == QEvent::Move || type == QEvent::Resize) {
crl::on_main(field, [=] { updateEmojiPanelGeometry(); });
}
return base::EventFilterResult::Continue;
});
field->lifetime().make_state<base::unique_qptr<QObject>>([&] {
return base::install_event_filter(container, [=](
not_null<QEvent*> event) {
const auto type = event->type();
if (type == QEvent::Move || type == QEvent::Resize) {
crl::on_main(field, [=] { updateEmojiPanelGeometry(); });
}
return base::EventFilterResult::Continue;
});
}());
field->widthValue() | rpl::start_with_next([=](int width) {
const auto &p = st::editPeerTitleEmojiPosition;