[gnome-music/wip/mschraal/rework-art-widget: 7/26] artstack: Disconnect ArtCache on coreobject change




commit 6fc37e3a4a2f4c4c48edea70b8da607eec3a7fe2
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]