Display counter only with new mail animation in debug mode
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 15 Jan 2017 02:23:05 +0000 (21:23 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 15 Feb 2019 22:14:53 +0000 (17:14 -0500)
src/wmnotify.c

index fec7d10..9646d38 100644 (file)
@@ -429,10 +429,10 @@ static void *TimerThread(void *arg)
                        NewMailAnimation();
                        (void) usleep(NEW_MAIL_ANIMATION_DURATION);
                        counter--;
-               }
 
-               if (wmnotify_infos.debug)
-                       printf("%s: counter = %d\n", PACKAGE, counter);
+                       if (wmnotify_infos.debug)
+                               printf("%s: counter = %d\n", PACKAGE, counter);
+               }
        }                       /* end while */
 
        if (wmnotify_infos.debug)