more common way of handling example config files (like in ncmpc) + add a few

more functions to libmpdclient implementation
This commit is contained in:
unK
2008-08-26 01:31:08 +02:00
parent 2d6f0faf7c
commit c7ebe772c7
8 changed files with 75 additions and 9 deletions

View File

@@ -1739,7 +1739,7 @@ int main(int argc, char *argv[])
{
found_pos = 0;
vFoundPositions.clear();
if (mLibArtists->Empty())
{
Mpd->GetArtists(vArtists);
@@ -1747,13 +1747,13 @@ int main(int argc, char *argv[])
for (TagList::const_iterator it = vArtists.begin(); it != vArtists.end(); it++)
mLibArtists->AddOption(*it);
}
mLibArtists->HighlightColor(Config.library_active_column_color);
mLibAlbums->HighlightColor(Config.main_highlight_color);
mLibSongs->HighlightColor(Config.main_highlight_color);
wCurrent->Hide();
REFRESH_MEDIA_LIBRARY_SCREEN;
wCurrent = mLibArtists;