diff options
author | jstebbins <[email protected]> | 2009-03-25 23:32:25 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-03-25 23:32:25 +0000 |
commit | 9f6567654eb742058830adc7827f8e8520936b5d (patch) | |
tree | 61baf22b089450473e00a4d88eaa445115607909 /gtk/src/main.c | |
parent | 97efe28c344d2a216a7d2a48248fae0446331ac1 (diff) |
add preference option to disable update checking
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2273 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index 086373912..a9dba9f8f 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -619,7 +619,13 @@ main (int argc, char *argv[]) } // Reload and check status of the last saved queue g_idle_add((GSourceFunc)ghb_reload_queue, ud); - g_thread_create((GThreadFunc)ghb_check_update, ud, FALSE, NULL); + if (ghb_settings_get_boolean(ud->settings, "check_updates")) + { +g_message("checking"); + g_thread_create((GThreadFunc)ghb_check_update, ud, FALSE, NULL); + } +else +g_message("skipping"); // Start timer for monitoring libhb status, 500ms g_timeout_add (500, ghb_timer_cb, (gpointer)ud); // Everything should be go-to-go. Lets rock! |