titles_visibility configuration option

This commit is contained in:
Alexey Semenko
2010-08-25 17:56:13 +07:00
committed by Andrzej Rybczak
parent 8ec84637d2
commit 18bc6368bf
11 changed files with 42 additions and 25 deletions

View File

@@ -378,6 +378,7 @@ void NcmpcppConfig::SetDefaults()
header_visibility = true;
header_text_scrolling = true;
statusbar_visibility = true;
titles_visibility = true;
centered_cursor = false;
screen_switcher_previous = false;
autocenter_mode = false;
@@ -899,6 +900,10 @@ void NcmpcppConfig::Read()
{
statusbar_visibility = v == "yes";
}
else if (cl.find("titles_visibility") != std::string::npos)
{
titles_visibility = v == "yes";
}
else if (cl.find("screen_switcher_mode") != std::string::npos)
{
if (v.find("previous") != std::string::npos)