fixes for db97a1a318
This commit is contained in:
@@ -259,7 +259,7 @@ void Help::GetKeybindings()
|
||||
|
||||
*w << "\n\n " << fmtBold << "Keys - Media library\n -----------------------------------------\n" << fmtBoldEnd;
|
||||
if (!Config.media_library_disable_two_column_mode)
|
||||
*w << DisplayKeys(Key.MediaLibrary) << "Switch between two/three columns\n";
|
||||
*w << DisplayKeys(Key.MediaLibrary) << "Switch between two/three columns\n";
|
||||
*w << DisplayKeys(&Key.VolumeDown[0], 1) << "Previous column\n";
|
||||
*w << DisplayKeys(&Key.VolumeUp[0], 1) << "Next column\n";
|
||||
*w << DisplayKeys(Key.Enter) << "Add to playlist and play song/album/artist's songs\n";
|
||||
|
||||
@@ -125,24 +125,29 @@ void MediaLibrary::Refresh()
|
||||
|
||||
void MediaLibrary::SwitchTo()
|
||||
{
|
||||
if (myScreen == this && !Config.media_library_disable_two_column_mode)
|
||||
if (myScreen == this)
|
||||
{
|
||||
hasTwoColumns = !hasTwoColumns;
|
||||
hasToBeResized = 1;
|
||||
Artists->Clear();
|
||||
Albums->Clear();
|
||||
Albums->Reset();
|
||||
Songs->Clear();
|
||||
if (hasTwoColumns)
|
||||
{
|
||||
if (w == Artists)
|
||||
NextColumn();
|
||||
std::string item_type = IntoStr(Config.media_lib_primary_tag);
|
||||
ToLower(item_type);
|
||||
Albums->SetTitle("Albums (sorted by " + item_type + ")");
|
||||
}
|
||||
if (Config.media_library_disable_two_column_mode)
|
||||
return;
|
||||
else
|
||||
Albums->SetTitle("Albums");
|
||||
{
|
||||
hasTwoColumns = !hasTwoColumns;
|
||||
hasToBeResized = 1;
|
||||
Artists->Clear();
|
||||
Albums->Clear();
|
||||
Albums->Reset();
|
||||
Songs->Clear();
|
||||
if (hasTwoColumns)
|
||||
{
|
||||
if (w == Artists)
|
||||
NextColumn();
|
||||
std::string item_type = IntoStr(Config.media_lib_primary_tag);
|
||||
ToLower(item_type);
|
||||
Albums->SetTitle("Albums (sorted by " + item_type + ")");
|
||||
}
|
||||
else
|
||||
Albums->SetTitle("Albums");
|
||||
}
|
||||
}
|
||||
|
||||
if (!isInitialized)
|
||||
|
||||
Reference in New Issue
Block a user