add option media_library_disable_two_column_mode
This commit is contained in:
@@ -258,7 +258,8 @@ void Help::GetKeybindings()
|
||||
|
||||
|
||||
*w << "\n\n " << fmtBold << "Keys - Media library\n -----------------------------------------\n" << fmtBoldEnd;
|
||||
*w << DisplayKeys(Key.MediaLibrary) << "Switch between two/three columns\n";
|
||||
if (!Config.media_library_disable_two_column_mode)
|
||||
*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,7 +125,7 @@ void MediaLibrary::Refresh()
|
||||
|
||||
void MediaLibrary::SwitchTo()
|
||||
{
|
||||
if (myScreen == this)
|
||||
if (myScreen == this && !Config.media_library_disable_two_column_mode)
|
||||
{
|
||||
hasTwoColumns = !hasTwoColumns;
|
||||
hasToBeResized = 1;
|
||||
|
||||
@@ -373,6 +373,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
|
||||
conf.browser_sort_by_mtime = false;
|
||||
conf.tag_editor_extended_numeration = false;
|
||||
conf.media_library_display_date = true;
|
||||
conf.media_library_disable_two_column_mode = false;
|
||||
conf.discard_colors_if_item_is_selected = true;
|
||||
conf.set_window_title = true;
|
||||
conf.mpd_port = 6600;
|
||||
@@ -953,6 +954,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
|
||||
{
|
||||
conf.media_library_display_date = v == "yes";
|
||||
}
|
||||
else if (cl.find("media_library_disable_two_column_mode") != std::string::npos)
|
||||
{
|
||||
conf.media_library_disable_two_column_mode = v == "yes";
|
||||
}
|
||||
else if (cl.find("discard_colors_if_item_is_selected") != std::string::npos)
|
||||
{
|
||||
conf.discard_colors_if_item_is_selected = v == "yes";
|
||||
|
||||
@@ -220,6 +220,7 @@ struct ncmpcpp_config
|
||||
bool browser_sort_by_mtime;
|
||||
bool tag_editor_extended_numeration;
|
||||
bool media_library_display_date;
|
||||
bool media_library_disable_two_column_mode;
|
||||
bool discard_colors_if_item_is_selected;
|
||||
|
||||
int mpd_port;
|
||||
|
||||
Reference in New Issue
Block a user