do not clear playlists content, make idle notifications take care of it
This commit is contained in:
@@ -1062,10 +1062,7 @@ void Add::Run()
|
|||||||
Statusbar() << "Adding...";
|
Statusbar() << "Adding...";
|
||||||
wFooter->refresh();
|
wFooter->refresh();
|
||||||
if (myScreen == myPlaylistEditor)
|
if (myScreen == myPlaylistEditor)
|
||||||
{
|
|
||||||
Mpd.AddToPlaylist(myPlaylistEditor->Playlists->current().value(), path);
|
Mpd.AddToPlaylist(myPlaylistEditor->Playlists->current().value(), path);
|
||||||
myPlaylistEditor->Content->clear(); // make it refetch content of playlist
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const char lastfm_url[] = "lastfm://";
|
const char lastfm_url[] = "lastfm://";
|
||||||
|
|||||||
@@ -305,8 +305,6 @@ void NcmpcppStatusChanged(MPD::Connection *, MPD::StatusChanges changed, void *)
|
|||||||
else
|
else
|
||||||
myLibrary->Tags->clear();
|
myLibrary->Tags->clear();
|
||||||
}
|
}
|
||||||
if (myPlaylistEditor->Main())
|
|
||||||
myPlaylistEditor->Content->clear();
|
|
||||||
changed.DBUpdating = 1;
|
changed.DBUpdating = 1;
|
||||||
}
|
}
|
||||||
if (changed.PlayerState)
|
if (changed.PlayerState)
|
||||||
|
|||||||
Reference in New Issue
Block a user