Skip to content

Commit

Permalink
fix(music): hide album art widget when no image
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Jul 26, 2023
1 parent 7f6fef6 commit 89ec06f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/music/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,11 @@ impl Module<Button> for MusicModule {
let res = if let Some(image) = new_cover.and_then(|cover_path| {
ImageProvider::parse(&cover_path, &icon_theme, false, image_size)
}) {
album_image.show();
image.load_into_image(album_image.clone())
} else {
album_image.set_from_pixbuf(None);
album_image.hide();
Ok(())
};

Expand Down

0 comments on commit 89ec06f

Please sign in to comment.