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();
|
myLyrics->Take();
|
||||||
# endif // HAVE_CURL_CURL_H && HAVE_PTHREAD_H
|
# endif // HAVE_CURL_CURL_H && HAVE_PTHREAD_H
|
||||||
|
|
||||||
if (!Reload)
|
if (Reload)
|
||||||
return;
|
|
||||||
|
|
||||||
const MPD::Song *s = myPlaylist->NowPlayingSong();
|
|
||||||
if (s && !s->GetArtist().empty() && !s->GetTitle().empty())
|
|
||||||
SwitchTo();
|
SwitchTo();
|
||||||
else
|
|
||||||
Reload = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Lyrics::SwitchTo()
|
void Lyrics::SwitchTo()
|
||||||
|
|||||||
Reference in New Issue
Block a user