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

Method setupPasscodeLock

Telegram/SourceFiles/mainwindow.cpp:183–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void MainWindow::setupPasscodeLock() {
184 auto animated = (_main || _intro);
185 auto oldContentCache = animated ? grabForSlideAnimation() : QPixmap();
186 _passcodeLock.create(bodyWidget(), &controller());
187 updateControlsGeometry();
188
189 ui_hideSettingsAndLayer(anim::type::instant);
190 if (_main) {
191 _main->hide();
192 }
193 if (_intro) {
194 _intro->hide();
195 }
196 if (animated) {
197 _passcodeLock->showAnimated(std::move(oldContentCache));
198 } else {
199 _passcodeLock->showFinished();
200 setInnerFocus();
201 }
202 if (const auto sessionController = controller().sessionController()) {
203 sessionController->session().attachWebView().closeAll();
204 }
205}
206
207void MainWindow::setupSetupEmailLock() {
208 auto animated = (_main || _intro || _passcodeLock);

Callers

nothing calls this directly

Calls 7

createMethod · 0.45
hideMethod · 0.45
showAnimatedMethod · 0.45
showFinishedMethod · 0.45
sessionControllerMethod · 0.45
closeAllMethod · 0.45
sessionMethod · 0.45

Tested by

no test coverage detected