diff --git a/src/app.cpp b/src/app.cpp index a1b216a47..996dee97b 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -148,10 +148,6 @@ App::App(int argc, char* argv[]) int App::run() { -#ifdef ENABLE_UPDATER - app::CheckUpdateThreadLauncher checkUpdate; -#endif - // Initialize GUI interface if (isGui()) { PRINTF("GUI mode\n"); @@ -223,6 +219,7 @@ int App::run() #ifdef ENABLE_UPDATER // Launch the thread to check for updates. + app::CheckUpdateThreadLauncher checkUpdate; checkUpdate.launch(); #endif