diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2013-04-06 19:01:27 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2013-04-07 13:22:50 +0200 |
commit | 6a3eb73a492946bd7079545f97894d3e8f174006 (patch) | |
tree | 7a61766ada6c97888800cb0fb2b78f923b9e903e /src/display.cpp | |
parent | 153e8437745ada833681a799ab535dfd455b4a6f (diff) |
rewrite communication system with mpd
Diffstat (limited to 'src/display.cpp')
-rw-r--r-- | src/display.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.cpp b/src/display.cpp index 3c273e5f..92dc9684 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -97,8 +97,8 @@ void setProperties(NC::Menu<T> &menu, const MPD::Song &s, const ProxySongList &p discard_colors = Config.discard_colors_if_item_is_selected && is_selected; int song_pos = menu.isFiltered() ? s.getPosition() : drawn_pos; - is_now_playing = Mpd.isPlaying() && myPlaylist->isActiveWindow(menu) - && song_pos == Mpd.GetCurrentSongPos(); + is_now_playing = MpdStatus.playerState() != MPD::psStop && myPlaylist->isActiveWindow(menu) + && song_pos == MpdStatus.currentSongPosition(); if (is_now_playing) menu << Config.now_playing_prefix; } |