chiark / gitweb /
suppress more redundant redisplay_tree() calls
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 11 Nov 2007 12:59:41 +0000 (12:59 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 11 Nov 2007 12:59:41 +0000 (12:59 +0000)
disobedience/choose.c
disobedience/queue.c

index 7ce30dac134a0535a6b94b23a52f2930944f7dac..5733d8cde5854e30a7232b097a6390947e3988b1 100644 (file)
@@ -786,6 +786,10 @@ static void redisplay_tree(const char *why) {
     /*fprintf(stderr, "redisplay_tree %s suppressed\n", why);*/
     return;
   }
+  if(gets_in_flight) {
+    /*fprintf(stderr, "redisplay_tree %s suppressed (gets_in_flight)\n", why);*/
+    return;
+  }
   /*fprintf(stderr, "redisplay_tree %s   *** NOT SUPPRESSED ***\n", why);*/
   /* We'll count these up empirically each time */
   files_selected = 0;
index 4d756c504a8a5a9d2dc6deed545c41e901e20dbb..b3661dc6d5e4dd30a06a963a35485a50bc705853 100644 (file)
@@ -1322,7 +1322,7 @@ GtkWidget *queue_widget(void) {
   /* Arrange periodic update of the so-far played field */
   g_timeout_add(1000/*ms*/, adjust_sofar, 0);
   /* Arrange a callback whenever the playing state changes */ 
-  register_monitor(playing_update, 0,  DISORDER_PLAYING|DISORDER_TRACK_PAUSED);
+  register_monitor(playing_update, 0, DISORDER_PLAYING|DISORDER_TRACK_PAUSED);
   register_reset(queue_update);
   /* We pass choose_update() as our notify function since the choose screen
    * marks tracks that are playing/in the queue. */