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

Method clearPasscodeLock

Telegram/SourceFiles/mainwindow.cpp:257–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void MainWindow::clearPasscodeLock() {
258 Expects(_intro || _main);
259
260 if (!_passcodeLock) {
261 return;
262 }
263
264 auto oldContentCache = grabForSlideAnimation();
265 _passcodeLock.destroy();
266 if (_setupEmailLock) {
267 _setupEmailLock->show();
268 updateControlsGeometry();
269 _setupEmailLock->showAnimated(std::move(oldContentCache));
270 } else if (_intro) {
271 _intro->show();
272 updateControlsGeometry();
273 _intro->showAnimated(std::move(oldContentCache), true);
274 } else if (_main) {
275 _main->show();
276 updateControlsGeometry();
277 _main->showAnimated(std::move(oldContentCache), true);
278 Core::App().checkStartUrls();
279 }
280}
281
282void MainWindow::setupIntro(
283 Intro::EnterPoint point,

Callers

nothing calls this directly

Calls 5

AppClass · 0.85
checkStartUrlsMethod · 0.80
destroyMethod · 0.45
showMethod · 0.45
showAnimatedMethod · 0.45

Tested by

no test coverage detected