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

Function QuitAttempt

Telegram/SourceFiles/core/application.cpp:1809–1816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1807}
1808
1809void QuitAttempt() {
1810 const auto savingSession = Sandbox::Instance().isSavingSession();
1811 if (!IsAppLaunched()
1812 || savingSession
1813 || App().readyToQuit()) {
1814 Sandbox::QuitWhenStarted();
1815 }
1816}
1817
1818bool Application::readyToQuit() {
1819 auto prevented = false;

Callers 2

quitPreventFinishedMethod · 0.85
QuitFunction · 0.85

Calls 4

IsAppLaunchedFunction · 0.85
AppClass · 0.85
readyToQuitMethod · 0.80
InstanceClass · 0.70

Tested by

no test coverage detected