mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-29 02:29:56 +01:00
If the new playing song has no covers, display nothing as playlist background, instead of default cover.png, which isn't very nice as a background IMHO
This commit is contained in:
parent
0b9d7f2a1a
commit
45c172f3fb
@ -1100,7 +1100,11 @@ void PlaylistView::CurrentSongChanged(const Song& song,
|
||||
const QImage& song_art) {
|
||||
current_song_cover_art_ = song_art;
|
||||
if (background_image_type_ == AlbumCover) {
|
||||
background_image_ = current_song_cover_art_;
|
||||
if (song.art_automatic().isEmpty() && song.art_manual().isEmpty()) {
|
||||
background_image_ = QImage();
|
||||
} else {
|
||||
background_image_ = current_song_cover_art_;
|
||||
}
|
||||
force_background_redraw_ = true;
|
||||
update();
|
||||
}
|
||||
@ -1128,7 +1132,7 @@ void PlaylistView::PrecomputeBackgroundImage() {
|
||||
255);
|
||||
}
|
||||
|
||||
// Scale image if this wasn't done before
|
||||
// Scale image if it hasn't been done before
|
||||
if (!background_image_has_been_scaled) {
|
||||
background_image = background_image.scaled(
|
||||
width(), height(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user