MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / finishFirstShow

Method finishFirstShow

Telegram/SourceFiles/mainwindow.cpp:141–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void MainWindow::finishFirstShow() {
142 applyInitialWorkMode();
143 createGlobalMenu();
144
145 windowActiveValue(
146 ) | rpl::skip(1) | rpl::filter(
147 !rpl::mappers::_1
148 ) | rpl::on_next([=] {
149 Ui::Tooltip::Hide();
150 }, lifetime());
151
152 setAttribute(Qt::WA_NoSystemBackground);
153
154 if (!_passcodeLock && !_setupEmailLock && _main) {
155 _main->activate();
156 } else if (!_passcodeLock && !_setupEmailLock && _intro) {
157 _intro->setInnerFocus();
158 }
159}
160
161void MainWindow::clearWidgetsHook() {
162 _mediaPreview.destroy();

Callers

nothing calls this directly

Calls 2

activateMethod · 0.45
setInnerFocusMethod · 0.45

Tested by

no test coverage detected