mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-09-11 15:56:04 +03:00
Fix MPRIS art not resetting when there's no art URI
This commit is contained in:
parent
831a89d29d
commit
bcedc20c36
@ -333,6 +333,7 @@ namespace SwayNotificationCenter.Widgets.Mpris {
|
||||
} catch (Error e) {
|
||||
debug ("Could not download album art for %s. Using fallback...",
|
||||
source.media_player.identity);
|
||||
this.album_art_pixbuf = null;
|
||||
}
|
||||
if (this.album_art_pixbuf != null) {
|
||||
unowned Gtk.StyleContext style_ctx = album_art.get_style_context ();
|
||||
@ -370,6 +371,9 @@ namespace SwayNotificationCenter.Widgets.Mpris {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
this.album_art_pixbuf = null;
|
||||
this.blurred_cover_surface = null;
|
||||
// Get the app icon
|
||||
Icon ? icon = null;
|
||||
if (desktop_entry is DesktopAppInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user