playlist editor: do not display "Playlist is empty" message
This commit is contained in:
@@ -177,16 +177,13 @@ void PlaylistEditor::Update()
|
|||||||
if (Config.titles_visibility)
|
if (Config.titles_visibility)
|
||||||
{
|
{
|
||||||
title = "Playlist content";
|
title = "Playlist content";
|
||||||
if (list.size() > 0)
|
title += " (";
|
||||||
{
|
title += unsignedLongIntTo<std::string>::apply(list.size());
|
||||||
title += " (";
|
title += " item";
|
||||||
title += unsignedLongIntTo<std::string>::apply(list.size());
|
if (list.size() == 1)
|
||||||
title += " item";
|
title += ")";
|
||||||
if (list.size() == 1)
|
else
|
||||||
title += ")";
|
title += "s)";
|
||||||
else
|
|
||||||
title += "s)";
|
|
||||||
}
|
|
||||||
title.resize(Content->getWidth());
|
title.resize(Content->getWidth());
|
||||||
}
|
}
|
||||||
Content->setTitle(title);
|
Content->setTitle(title);
|
||||||
@@ -201,10 +198,10 @@ void PlaylistEditor::Update()
|
|||||||
w = Playlists;
|
w = Playlists;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Content->reallyEmpty())
|
if (Playlists->empty() && Content->reallyEmpty())
|
||||||
{
|
{
|
||||||
*Content << NC::XY(0, 0) << "Playlist is empty.";
|
Content->Window::clear();
|
||||||
Content->Window::refresh();
|
Content->Window::display();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user