2
0
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:
23rd
2021-02-03 06:31:11 +03:00
committed by John Preston
parent 0783a682dc
commit 0b4d0b83c2
12 changed files with 71 additions and 79 deletions

View File

@@ -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() {