diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2013-04-07 17:28:10 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2013-04-07 17:29:32 +0200 |
commit | 2184fb7c7393ef2d8e3e3ccbc020d7d0025703e4 (patch) | |
tree | e6c9dcc87f5aa482c11462d284507db320de8f84 /src/display.cpp | |
parent | d451731562f3772fa52b34222c06d32cafbec35f (diff) |
get rid of global mpd status object
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 c3c9c1b0..cfa1f550 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 = MpdStatus.playerState() != MPD::psStop && myPlaylist->isActiveWindow(menu) - && song_pos == MpdStatus.currentSongPosition(); + is_now_playing = Status::State::player() != MPD::psStop && myPlaylist->isActiveWindow(menu) + && song_pos == myPlaylist->currentSongPosition(); if (is_now_playing) menu << Config.now_playing_prefix; } |