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:
parent
7f6fef6338
commit
89ec06fc7b
1 changed files with 2 additions and 0 deletions
|
@ -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(())
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue