From df48deaef8e6016d2d62cae368f5b02710b73f7b Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 23 Aug 2012 23:51:27 -0300 Subject: [PATCH] Initialize CheckUpdate process only in GUI mode. E.g. If the program is executed with --help we don't need to check for updates. --- src/app.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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