diff --git a/src/screen.c b/src/screen.c
index efbd37ff6fb8729cca81f1db00a92981faf7b099..19441707f0329c6d958ef21af55075db9ef50ad3 100644 (file)
--- a/src/screen.c
+++ b/src/screen.c
screen_update(struct mpdclient *c)
{
#ifndef NCMPC_MINI
+ static bool was_connected;
static bool initialized = false;
static bool repeat;
static bool random_enabled;
crossfade = mpd_status_get_crossfade(c->status);
}
- if (c->events & MPD_IDLE_DATABASE)
+ if ((c->events & MPD_IDLE_DATABASE) != 0 && was_connected)
screen_status_printf(_("Database updated"));
+ was_connected = mpdclient_is_connected(c);
/* update title/header window */
if (screen.welcome_source_id != 0)