fix 'media library: fix filter issues'
This commit is contained in:
@@ -201,7 +201,7 @@ void MediaLibrary::Update()
|
||||
Artists->Refresh();
|
||||
}
|
||||
|
||||
if (!hasTwoColumns && !Artists->ReallyEmpty() && Albums->ReallyEmpty() && Songs->ReallyEmpty())
|
||||
if (!hasTwoColumns && !Artists->Empty() && Albums->ReallyEmpty() && Songs->ReallyEmpty())
|
||||
{
|
||||
// idle has to be blocked for now since it would be enabled and
|
||||
// disabled a few times by each mpd command, which makes no sense
|
||||
@@ -303,14 +303,14 @@ void MediaLibrary::Update()
|
||||
Albums->Refresh();
|
||||
}
|
||||
|
||||
if (!hasTwoColumns && !Artists->ReallyEmpty() && w == Albums && Albums->ReallyEmpty())
|
||||
if (!hasTwoColumns && !Artists->Empty() && w == Albums && Albums->ReallyEmpty())
|
||||
{
|
||||
Albums->HighlightColor(Config.main_highlight_color);
|
||||
Artists->HighlightColor(Config.active_column_color);
|
||||
w = Artists;
|
||||
}
|
||||
|
||||
if (!(hasTwoColumns ? Albums->ReallyEmpty() : Artists->ReallyEmpty()) && Songs->ReallyEmpty())
|
||||
if (!(hasTwoColumns ? Albums->Empty() : Artists->Empty()) && Songs->ReallyEmpty())
|
||||
{
|
||||
Songs->Reset();
|
||||
MPD::SongList list;
|
||||
|
||||
@@ -2089,7 +2089,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (s)
|
||||
artist = s->GetArtist();
|
||||
else if (myScreen == myLibrary && myLibrary->Main() == myLibrary->Artists)
|
||||
else if (myScreen == myLibrary && myLibrary->Main() == myLibrary->Artists && !myLibrary->Artists->Empty())
|
||||
artist = myLibrary->Artists->Current();
|
||||
|
||||
if (!artist.empty() && myLastfm->SetArtistInfoArgs(artist, Config.lastfm_preferred_language))
|
||||
|
||||
Reference in New Issue
Block a user