remove unneded checks in Lyrics::Update() if Reload is requested
they are checked again in Lyrics::SwitchTo(), so why bother?
This commit is contained in:
@@ -86,14 +86,8 @@ void Lyrics::Update()
|
||||
myLyrics->Take();
|
||||
# endif // HAVE_CURL_CURL_H && HAVE_PTHREAD_H
|
||||
|
||||
if (!Reload)
|
||||
return;
|
||||
|
||||
const MPD::Song *s = myPlaylist->NowPlayingSong();
|
||||
if (s && !s->GetArtist().empty() && !s->GetTitle().empty())
|
||||
if (Reload)
|
||||
SwitchTo();
|
||||
else
|
||||
Reload = 0;
|
||||
}
|
||||
|
||||
void Lyrics::SwitchTo()
|
||||
|
||||
Reference in New Issue
Block a user