Moved the application updater result fetch prior to the startup time log message.

This commit is contained in:
Leon Styhre 2023-02-26 12:57:16 +01:00
parent c9a59994a6
commit a752761937

View file

@ -791,17 +791,17 @@ int main(int argc, char* argv[])
lastTime = SDL_GetTicks();
#if defined(APPLICATION_UPDATER)
if (ApplicationUpdater::getInstance().getResults())
ViewController::getInstance()->updateAvailableDialog();
#endif
LOG(LogInfo) << "Application startup time: "
<< std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::system_clock::now() - applicationStartTime)
.count()
<< " ms";
#if defined(APPLICATION_UPDATER)
if (ApplicationUpdater::getInstance().getResults())
ViewController::getInstance()->updateAvailableDialog();
#endif
// Open the input configuration GUI if the force flag was passed from the command line.
if (forceInputConfig) {
ViewController::getInstance()->cancelViewTransitions();