[gnome-music/wip/mschraal/type-checking: 1/2] grltrackerwrapper: Cleanup content changed id handling
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/type-checking: 1/2] grltrackerwrapper: Cleanup content changed id handling
- Date: Mon, 19 Oct 2020 14:21:50 +0000 (UTC)
commit 93e36eb9963121a398700f5b821041024ea1d3c4
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Oct 19 16:19:47 2020 +0200
grltrackerwrapper: Cleanup content changed id handling
gnomemusic/grilowrappers/grltrackerwrapper.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index cc4338f0..61bb6c0b 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -123,7 +123,7 @@ class GrlTrackerWrapper(GObject.GObject):
self._full_options.set_resolution_flags(
Grl.ResolutionFlags.FULL | Grl.ResolutionFlags.IDLE_RELAY)
- self._content_changed_id = None
+ self._content_changed_id = 0
self.props.source = source
self._initial_songs_fill()
@@ -143,9 +143,9 @@ class GrlTrackerWrapper(GObject.GObject):
:param Grl.Source new_source: new grilo tracker source
"""
- if self._content_changed_id is not None:
+ if self._content_changed_id != 0:
self._source.disconnect(self._content_changed_id)
- self._content_changed_id = None
+ self._content_changed_id = 0
self._source = new_source
self._source.notify_change_start()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]