playlist editor: fix filter issues
This commit is contained in:
@@ -118,7 +118,7 @@ void PlaylistEditor::SwitchTo()
|
|||||||
|
|
||||||
void PlaylistEditor::Update()
|
void PlaylistEditor::Update()
|
||||||
{
|
{
|
||||||
if (Playlists->Empty())
|
if (Playlists->ReallyEmpty())
|
||||||
{
|
{
|
||||||
Content->Clear();
|
Content->Clear();
|
||||||
MPD::TagList list;
|
MPD::TagList list;
|
||||||
@@ -133,7 +133,7 @@ void PlaylistEditor::Update()
|
|||||||
Playlists->Refresh();
|
Playlists->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Playlists->Empty() && Content->Empty())
|
if (!Playlists->Empty() && Content->ReallyEmpty())
|
||||||
{
|
{
|
||||||
Content->Reset();
|
Content->Reset();
|
||||||
MPD::SongList list;
|
MPD::SongList list;
|
||||||
@@ -161,14 +161,14 @@ void PlaylistEditor::Update()
|
|||||||
Content->Display();
|
Content->Display();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w == Content && Content->Empty())
|
if (w == Content && Content->ReallyEmpty())
|
||||||
{
|
{
|
||||||
Content->HighlightColor(Config.main_highlight_color);
|
Content->HighlightColor(Config.main_highlight_color);
|
||||||
Playlists->HighlightColor(Config.active_column_color);
|
Playlists->HighlightColor(Config.active_column_color);
|
||||||
w = Playlists;
|
w = Playlists;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Content->Empty())
|
if (Content->ReallyEmpty())
|
||||||
{
|
{
|
||||||
*Content << XY(0, 0) << "Playlist is empty.";
|
*Content << XY(0, 0) << "Playlist is empty.";
|
||||||
Content->Window::Refresh();
|
Content->Window::Refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user