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

Method clearSetupEmailLock

Telegram/SourceFiles/mainwindow.cpp:234–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void MainWindow::clearSetupEmailLock() {
235 if (!_setupEmailLock) {
236 return;
237 }
238
239 auto oldContentCache = grabForSlideAnimation();
240 _setupEmailLock.destroy();
241 if (_passcodeLock) {
242 _passcodeLock->show();
243 updateControlsGeometry();
244 _passcodeLock->showAnimated(std::move(oldContentCache));
245 } else if (_intro) {
246 _intro->show();
247 updateControlsGeometry();
248 _intro->showAnimated(std::move(oldContentCache), true);
249 } else if (_main) {
250 _main->show();
251 updateControlsGeometry();
252 _main->showAnimated(std::move(oldContentCache), true);
253 Core::App().checkStartUrls();
254 }
255}
256
257void MainWindow::clearPasscodeLock() {
258 Expects(_intro || _main);

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