mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed event filter from input field in edit peer info box on close.
This commit is contained in:
parent
6148fb9474
commit
c985b77a48
1 changed files with 11 additions and 7 deletions
|
@ -620,13 +620,17 @@ object_ptr<Ui::RpWidget> Controller::createTitleEdit() {
|
||||||
local.x() + emojiToggle->width() * 3);
|
local.x() + emojiToggle->width() * 3);
|
||||||
};
|
};
|
||||||
|
|
||||||
base::install_event_filter(container, [=](not_null<QEvent*> event) {
|
|
||||||
const auto type = event->type();
|
field->lifetime().make_state<base::unique_qptr<QObject>>([&] {
|
||||||
if (type == QEvent::Move || type == QEvent::Resize) {
|
return base::install_event_filter(container, [=](
|
||||||
crl::on_main(field, [=] { updateEmojiPanelGeometry(); });
|
not_null<QEvent*> event) {
|
||||||
}
|
const auto type = event->type();
|
||||||
return base::EventFilterResult::Continue;
|
if (type == QEvent::Move || type == QEvent::Resize) {
|
||||||
});
|
crl::on_main(field, [=] { updateEmojiPanelGeometry(); });
|
||||||
|
}
|
||||||
|
return base::EventFilterResult::Continue;
|
||||||
|
});
|
||||||
|
}());
|
||||||
|
|
||||||
field->widthValue() | rpl::start_with_next([=](int width) {
|
field->widthValue() | rpl::start_with_next([=](int width) {
|
||||||
const auto &p = st::editPeerTitleEmojiPosition;
|
const auto &p = st::editPeerTitleEmojiPosition;
|
||||||
|
|
Loading…
Add table
Reference in a new issue