From bcedc20c3603cfbc50bb4ff8ab4aadbba57a519f Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Wed, 20 Dec 2023 21:22:07 +0100 Subject: [PATCH] Fix MPRIS art not resetting when there's no art URI --- src/controlCenter/widgets/mpris/mpris_player.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controlCenter/widgets/mpris/mpris_player.vala b/src/controlCenter/widgets/mpris/mpris_player.vala index 55125e8..51ed301 100644 --- a/src/controlCenter/widgets/mpris/mpris_player.vala +++ b/src/controlCenter/widgets/mpris/mpris_player.vala @@ -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) {