lyrics: add support for showing notifications about fetching lyrics in background

This commit is contained in:
Andrzej Rybczak
2016-11-21 10:47:27 +01:00
parent ba83b9daab
commit 5b56c48c4a
4 changed files with 74 additions and 21 deletions

View File

@@ -317,6 +317,10 @@ void UpdateEnvironment::run(bool update_timer, bool refresh_window)
// update timer, status if necessary etc.
Status::trace(update_timer, true);
// show lyrics consumer notification if appropriate
if (auto message = myLyrics->tryTakeConsumerMessage())
Statusbar::print(*message);
// header stuff
if ((myScreen == myPlaylist || myScreen == myBrowser || myScreen == myLyrics)
&& (Timer - m_past > boost::posix_time::milliseconds(500))