summaryrefslogtreecommitdiff
path: root/src/playlist.cpp
diff options
context:
space:
mode:
authorAlexey Semenko <igogo.dev@gmail.com>2010-08-25 17:56:13 +0700
committerAndrzej Rybczak <electricityispower@gmail.com>2010-08-25 15:35:37 +0200
commit18bc6368bf33197013d191521771ce25f91832f3 (patch)
treeb1546616f6341ebce23bfc7822888812160e5ffd /src/playlist.cpp
parent8ec84637d2de81853ed172e4455a630091f68766 (diff)
titles_visibility configuration option
Diffstat (limited to 'src/playlist.cpp')
-rw-r--r--src/playlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist.cpp b/src/playlist.cpp
index 1de4749d..114f40b6 100644
--- a/src/playlist.cpp
+++ b/src/playlist.cpp
@@ -49,7 +49,7 @@ void Playlist::Init()
{
static Display::ScreenFormat sf = { this, &Config.song_list_format };
- Items = new Menu<MPD::Song>(0, MainStartY, COLS, MainHeight, Config.columns_in_playlist ? Display::Columns() : "", Config.main_color, brNone);
+ Items = new Menu<MPD::Song>(0, MainStartY, COLS, MainHeight, Config.columns_in_playlist && Config.titles_visibility ? Display::Columns() : "", Config.main_color, brNone);
Items->CyclicScrolling(Config.use_cyclic_scrolling);
Items->CenteredCursor(Config.centered_cursor);
Items->HighlightColor(Config.main_highlight_color);
@@ -118,7 +118,7 @@ void Playlist::Resize()
{
Items->Resize(COLS, MainHeight);
Items->MoveTo(0, MainStartY);
- Items->SetTitle(Config.columns_in_playlist ? Display::Columns() : "");
+ Items->SetTitle(Config.columns_in_playlist && Config.titles_visibility ? Display::Columns() : "");
if (w == SortDialog) // if sorting window is active, playlist needs refreshing
Items->Display();