Moved the application updater execution slightly later in the startup process.

This commit is contained in:
Leon Styhre 2023-02-18 14:06:29 +01:00
parent e95ff8b4b9
commit 5d5be42918

View file

@ -693,14 +693,6 @@ int main(int argc, char* argv[])
renderer = Renderer::getInstance();
window = Window::getInstance();
#if defined(APPLICATION_UPDATER)
std::unique_ptr<ApplicationUpdater> applicationUpdater;
if (!noUpdateCheck) {
applicationUpdater = std::make_unique<ApplicationUpdater>();
applicationUpdater->checkForUpdates();
}
#endif
ViewController::getInstance();
CollectionSystemsManager::getInstance();
Screensaver screensaver;
@ -712,6 +704,14 @@ int main(int argc, char* argv[])
return 1;
}
#if defined(APPLICATION_UPDATER)
std::unique_ptr<ApplicationUpdater> applicationUpdater;
if (!noUpdateCheck) {
applicationUpdater = std::make_unique<ApplicationUpdater>();
applicationUpdater->checkForUpdates();
}
#endif
window->pushGui(ViewController::getInstance());
if (Settings::getInstance()->getBool("SplashScreen"))