add clock screen (ported from ncmpc)

This commit is contained in:
Andrzej Rybczak
2009-01-17 20:40:28 +01:00
parent 351ddc8584
commit 542c121e0a
16 changed files with 290 additions and 23 deletions

View File

@@ -97,7 +97,8 @@ void UnlockStatusbar()
void TraceMpdStatus()
{
Mpd->UpdateStatus();
if (Mpd->Connected())
Mpd->UpdateStatus();
time_t now = time(NULL);
if (current_screen == csPlaylist && now == timer+Config.playlist_disable_highlight_delay)