mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Removed App::wnd from classes that have pointer to Window::Controller.
This commit is contained in:
@@ -260,9 +260,11 @@ HistoryWidget::HistoryWidget(
|
||||
connect(_field, &Ui::InputField::changed, [=] {
|
||||
fieldChanged();
|
||||
});
|
||||
connect(App::wnd()->windowHandle(), &QWindow::visibleChanged, this, [=] {
|
||||
windowIsVisibleChanged();
|
||||
});
|
||||
connect(
|
||||
controller->widget()->windowHandle(),
|
||||
&QWindow::visibleChanged,
|
||||
this,
|
||||
[=] { windowIsVisibleChanged(); });
|
||||
|
||||
initTabbedSelector();
|
||||
|
||||
@@ -2006,7 +2008,7 @@ void HistoryWidget::showHistory(
|
||||
update();
|
||||
controller()->floatPlayerAreaUpdated();
|
||||
|
||||
crl::on_main(App::wnd(), [] { App::wnd()->setInnerFocus(); });
|
||||
crl::on_main(this, [=] { controller()->widget()->setInnerFocus(); });
|
||||
}
|
||||
|
||||
void HistoryWidget::clearDelayedShowAt() {
|
||||
|
Reference in New Issue
Block a user