[gnome-music/wip/jfelder/tracker3] fixm
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/tracker3] fixm
- Date: Mon, 24 Aug 2020 20:16:38 +0000 (UTC)
commit bfc72d22f4449d57e04820709e8cc5ce2497e955
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Aug 24 22:06:29 2020 +0200
fixm
gnomemusic/coregrilo.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index 84d6b1f7..aabd3f74 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -95,8 +95,13 @@ class CoreGrilo(GObject.GObject):
self._registry.load_all_plugins(False)
- self._tracker_wrapper.connect(
- "notify::tracker-available", self._on_tracker_available_changed)
+ tracker_available_state = self._tracker_wrapper.props.tracker_available
+ if tracker_available_state != TrackerState.AVAILABLE:
+ self._tracker_wrapper.connect(
+ "notify::tracker-available",
+ self._on_tracker_available_changed)
+ else:
+ self._on_tracker_available_changed(None, None)
for plugin in self._registry.get_plugins(False):
plugin_id = plugin.get_id()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]