[gnome-music/wip/mschraal/gtk4-v3: 246/248] artstack: Only act on a new coreartist
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4-v3: 246/248] artstack: Only act on a new coreartist
- Date: Mon, 14 Feb 2022 02:24:03 +0000 (UTC)
commit e58538acce74d061913a4c0dd9b98250d9367448
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Feb 14 02:44:20 2022 +0100
artstack: Only act on a new coreartist
gnomemusic/widgets/artstack.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/widgets/artstack.py b/gnomemusic/widgets/artstack.py
index a7b11f595..8daa12c48 100644
--- a/gnomemusic/widgets/artstack.py
+++ b/gnomemusic/widgets/artstack.py
@@ -128,6 +128,9 @@ class ArtStack(Gtk.Stack):
@coreobject.setter # type: ignore
def coreobject(self, coreobject: CoreObject) -> None:
+ if coreobject is self._coreobject:
+ return
+
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]