Commit bcedc20c authored by Erik Reider's avatar Erik Reider

Fix MPRIS art not resetting when there's no art URI

parent 831a89d2
...@@ -333,6 +333,7 @@ namespace SwayNotificationCenter.Widgets.Mpris { ...@@ -333,6 +333,7 @@ namespace SwayNotificationCenter.Widgets.Mpris {
} catch (Error e) { } catch (Error e) {
debug ("Could not download album art for %s. Using fallback...", debug ("Could not download album art for %s. Using fallback...",
source.media_player.identity); source.media_player.identity);
this.album_art_pixbuf = null;
} }
if (this.album_art_pixbuf != null) { if (this.album_art_pixbuf != null) {
unowned Gtk.StyleContext style_ctx = album_art.get_style_context (); unowned Gtk.StyleContext style_ctx = album_art.get_style_context ();
...@@ -370,6 +371,9 @@ namespace SwayNotificationCenter.Widgets.Mpris { ...@@ -370,6 +371,9 @@ namespace SwayNotificationCenter.Widgets.Mpris {
return; return;
} }
} }
this.album_art_pixbuf = null;
this.blurred_cover_surface = null;
// Get the app icon // Get the app icon
Icon ? icon = null; Icon ? icon = null;
if (desktop_entry is DesktopAppInfo) { if (desktop_entry is DesktopAppInfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment