From: Richard Kettlewell Date: Sun, 11 Nov 2007 12:59:41 +0000 (+0000) Subject: suppress more redundant redisplay_tree() calls X-Git-Tag: debian-1_5_99dev8~41 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/165086a0133f6bdff9ee6d2495ea6a597a5c69b9 suppress more redundant redisplay_tree() calls --- diff --git a/disobedience/choose.c b/disobedience/choose.c index 7ce30da..5733d8c 100644 --- a/disobedience/choose.c +++ b/disobedience/choose.c @@ -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; diff --git a/disobedience/queue.c b/disobedience/queue.c index 4d756c5..b3661dc 100644 --- a/disobedience/queue.c +++ b/disobedience/queue.c @@ -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. */