add a few informational messages

This commit is contained in:
Andrzej Rybczak
2012-08-14 19:17:49 +02:00
parent 2096181eb1
commit b7999b499f
4 changed files with 11 additions and 10 deletions

View File

@@ -515,7 +515,10 @@ void Browser::ClearDirectory(const std::string &path) const
void Browser::ChangeBrowseMode()
{
if (Mpd.GetHostname()[0] != '/')
{
ShowMessage("For browsing local filesystem connection to MPD via UNIX Socket is required");
return;
}
itsBrowseLocally = !itsBrowseLocally;
ShowMessage("Browse mode: %s", itsBrowseLocally ? "Local filesystem" : "MPD database");