From: Charles McGarvey Date: Thu, 29 Nov 2012 05:43:10 +0000 (-0700) Subject: fix clock to update even if it is on line two X-Git-Url: https://git.brokenzipper.com/gitweb?p=chaz%2Ftint2;a=commitdiff_plain;h=1aea2f679d269af1facc9f80870793bb43126703 fix clock to update even if it is on line two --- diff --git a/src/clock/clock.c b/src/clock/clock.c index 73547d1..6212dc1 100644 --- a/src/clock/clock.c +++ b/src/clock/clock.c @@ -130,8 +130,9 @@ const char* clock_get_tooltip(void* obj) void init_clock() { - if(time1_format && clock_timeout==0) { - if (strchr(time1_format, 'S') || strchr(time1_format, 'T') || strchr(time1_format, 'r')) + if((time1_format || time2_format) && clock_timeout==0) { + if (strchr(time1_format, 'S') || strchr(time1_format, 'T') || strchr(time1_format, 'r') || + strchr(time2_format, 'S') || strchr(time2_format, 'T') || strchr(time2_format, 'r')) clock_timeout = add_timeout(10, 1000, update_clocks_sec, 0); else clock_timeout = add_timeout(10, 1000, update_clocks_min, 0);