Mark songs as added to playlist immediately (media library / playlist editor)

This commit is contained in:
Andrzej Rybczak
2017-08-31 10:19:13 +02:00
parent def5c46225
commit c340a6ba9a
2 changed files with 12 additions and 0 deletions

View File

@@ -439,6 +439,17 @@ void Status::Changes::playlist(unsigned previous_version)
myPlaylist->reloadTotalLength();
myPlaylist->reloadRemaining();
// When we're in multi-column screens, it might happen that songs visible on
// the screen are added, but they will not be immediately marked as such
// because the window that contains them is not the active one at the moment,
// so we need to refresh them manually.
if (isVisible(myLibrary)
&& !myLibrary->isActiveWindow(myLibrary->Songs))
myLibrary->Songs.refresh();
if (isVisible(myPlaylistEditor)
&& !myPlaylistEditor->isActiveWindow(myPlaylistEditor->Content))
myPlaylistEditor->Content.refresh();
}
void Status::Changes::storedPlaylists()