[gnome-music/wip/mschraal/asyncqueue-fix-cover-cycling: 2/3] artstack: Disconnect ArtCache on coreobject change




commit 2403169c476a173db58065b69ccdac96e5912515
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Mar 17 17:01:55 2022 +0100

    artstack: Disconnect ArtCache on coreobject change

 gnomemusic/widgets/artstack.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gnomemusic/widgets/artstack.py b/gnomemusic/widgets/artstack.py
index 2669aad5e..19fd2f9f4 100644
--- a/gnomemusic/widgets/artstack.py
+++ b/gnomemusic/widgets/artstack.py
@@ -137,6 +137,8 @@ class ArtStack(Gtk.Stack):
         if coreobject is self._coreobject:
             return
 
+        self._disconnect_cache()
+
         if self._thumbnail_id != 0:
             self._coreobject.disconnect(self._thumbnail_id)
             self._thumbnail_id = 0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]