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

Method locked

Telegram/SourceFiles/window/window_controller.cpp:355–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355bool Controller::locked() const {
356 if (Core::App().passcodeLocked()/* || Core::App().setupEmailLocked()*/) {
357 return true;
358 } else if (const auto controller = sessionController()) {
359 return controller->session().termsLocked().has_value();
360 }
361 return false;
362}
363
364void Controller::checkThemeEditor() {
365 using namespace Window::Theme;

Callers 11

handleStartFilesMethod · 0.45
hiderLayerMethod · 0.45
showHistoryMethod · 0.45
showNewSectionMethod · 0.45
prepareButtonMethod · 0.45
setupShortcutsMethod · 0.45
runMethod · 0.45
checkStartUrlsMethod · 0.45
updateGlobalMenuHookMethod · 0.45
setupShortcutsMethod · 0.45
setupShortcutsMethod · 0.45

Calls 5

AppClass · 0.85
passcodeLockedMethod · 0.80
has_valueMethod · 0.80
termsLockedMethod · 0.80
sessionMethod · 0.45

Tested by

no test coverage detected