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

Function Restart

Telegram/SourceFiles/core/application.cpp:1971–1981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969}
1970
1971void Restart() {
1972 const auto updateReady = !UpdaterDisabled()
1973 && (UpdateChecker().state() == UpdateChecker::State::Ready);
1974 if (updateReady) {
1975 cSetRestartingUpdate(true);
1976 } else {
1977 cSetRestarting(true);
1978 cSetRestartingToSettings(true);
1979 }
1980 Quit();
1981}
1982
1983} // namespace Core

Callers 15

checkingFinishedMethod · 0.70
sendingFinishedMethod · 0.70
closeEventMethod · 0.70
singleInstanceCheckedMethod · 0.70
switchDebugModeMethod · 0.70
checkUpdateStatusMethod · 0.50
performSwitchToCustomMethod · 0.50
restartAfterSwitchMethod · 0.50
initResetScaleButtonMethod · 0.50
saveMethod · 0.50
AddOptionFunction · 0.50

Calls 4

UpdaterDisabledFunction · 0.85
QuitFunction · 0.85
UpdateCheckerClass · 0.70
stateMethod · 0.45

Tested by

no test coverage detected