| 84 | = "auto-scroll-inactive-chat"; |
| 85 | |
| 86 | MainWindow::MainWindow(not_null<Window::Controller*> controller) |
| 87 | : Platform::MainWindow(controller) { |
| 88 | resize(st::windowDefaultWidth, st::windowDefaultHeight); |
| 89 | |
| 90 | setLocale(QLocale(QLocale::English, QLocale::UnitedStates)); |
| 91 | |
| 92 | using Window::Theme::BackgroundUpdate; |
| 93 | Window::Theme::Background()->updates( |
| 94 | ) | rpl::on_next([=](const BackgroundUpdate &data) { |
| 95 | themeUpdated(data); |
| 96 | }, lifetime()); |
| 97 | |
| 98 | Core::App().passcodeLockChanges( |
| 99 | ) | rpl::on_next([=] { |
| 100 | updateGlobalMenu(); |
| 101 | }, lifetime()); |
| 102 | |
| 103 | Ui::Emoji::Updated( |
| 104 | ) | rpl::on_next([=] { |
| 105 | Ui::ForceFullRepaint(this); |
| 106 | }, lifetime()); |
| 107 | |
| 108 | setAttribute(Qt::WA_OpaquePaintEvent); |
| 109 | } |
| 110 | |
| 111 | void MainWindow::initHook() { |
| 112 | Platform::MainWindow::initHook(); |
nothing calls this directly
no test coverage detected