Only enable album cover options for collection songs

This commit is contained in:
Jonas Kvinge
2021-03-07 01:49:38 +01:00
parent 5807bee23b
commit 1ff6ba9480
2 changed files with 25 additions and 17 deletions

View File

@@ -1314,7 +1314,7 @@ void MainWindow::SongChanged(const Song &song) {
SendNowPlaying();
const bool enable_cover_options = song.url().isLocalFile() && !song.effective_albumartist().isEmpty() && !song.album().isEmpty();
const bool enable_cover_options = song.is_collection_song() && !song.effective_albumartist().isEmpty() && !song.album().isEmpty();
album_cover_choice_controller_->cover_from_file_action()->setEnabled(enable_cover_options);
album_cover_choice_controller_->cover_from_url_action()->setEnabled(enable_cover_options);
album_cover_choice_controller_->search_for_cover_action()->setEnabled(enable_cover_options);