diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2014-09-03 19:07:55 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2014-09-03 20:08:00 +0200 |
commit | 06a07b0d334e1898b033bbe7c4a596324d57a6a1 (patch) | |
tree | 197a2d344e374c8977b41a5ea62f1c09ba45f8b6 /src/statusbar.cpp | |
parent | 18de4c1e7720c24551f3891d2227209bb2a1ab27 (diff) |
status: fix toggling flags
Diffstat (limited to 'src/statusbar.cpp')
-rw-r--r-- | src/statusbar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/statusbar.cpp b/src/statusbar.cpp index 6f4198c4..a7c99c83 100644 --- a/src/statusbar.cpp +++ b/src/statusbar.cpp @@ -104,7 +104,7 @@ void Statusbar::unlock() else progressbarBlockUpdate = false; } - if (Status::State::player() == MPD::psStop) + if (Status::get().playerState() == MPD::psStop) { switch (Config.design) { @@ -112,7 +112,7 @@ void Statusbar::unlock() put() << wclrtoeol; break; case Design::Alternative: - Progressbar::draw(Status::State::elapsedTime(), myPlaylist->currentSongLength()); + Progressbar::draw(Status::elapsedTime(), Status::get().totalTime()); break; } wFooter->refresh(); @@ -137,7 +137,7 @@ void Statusbar::tryRedraw() else progressbarBlockUpdate = !statusbarAllowUnlock; - if (Status::State::player() != MPD::psStop && !statusbarBlockUpdate && !progressbarBlockUpdate) + if (Status::get().playerState() != MPD::psStop && !statusbarBlockUpdate && !progressbarBlockUpdate) { switch (Config.design) { @@ -145,7 +145,7 @@ void Statusbar::tryRedraw() Status::Changes::elapsedTime(false); break; case Design::Alternative: - Progressbar::draw(Status::State::elapsedTime(), myPlaylist->currentSongLength()); + Progressbar::draw(Status::elapsedTime(), Status::get().totalTime()); break; } wFooter->refresh(); |