[gnome-music/wip/mschraal/texturecache-memory-size-improvements: 3/9] coverpaintable: Smarter reset on coreobject change
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/texturecache-memory-size-improvements: 3/9] coverpaintable: Smarter reset on coreobject change
- Date: Wed, 20 Apr 2022 21:34:30 +0000 (UTC)
commit b2cf46da17abda696979c5d2ba5b7123a73635a9
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Apr 17 11:58:05 2022 +0200
coverpaintable: Smarter reset on coreobject change
gnomemusic/coverpaintable.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/coverpaintable.py b/gnomemusic/coverpaintable.py
index d4ac2a539..4519e6680 100644
--- a/gnomemusic/coverpaintable.py
+++ b/gnomemusic/coverpaintable.py
@@ -152,8 +152,9 @@ class CoverPaintable(GObject.GObject, Gdk.Paintable):
self._texture_cache.clear_pending_lookup_callback()
- self._texture = None
- self.invalidate_contents()
+ if self._texture:
+ self._texture = None
+ self.invalidate_contents()
if self._thumbnail_id != 0:
self._coreobject.disconnect(self._thumbnail_id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]