1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

fix(music): hide album art widget when no image

This commit is contained in:
Jake Stanger 2023-07-26 21:52:35 +01:00
parent 7f6fef6338
commit 89ec06fc7b
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -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(())
};