Commit a3f584cb authored by Debarshi Ray's avatar Debarshi Ray

tracker-controller: Be direct when Tracker can't be found

... so that the problem is more obvious to non-technical end-users.

parent 748d56bf
Pipeline #45398 passed with stage
in 15 minutes and 50 seconds
......@@ -165,11 +165,16 @@ photos_tracker_controller_item_added_removed (PhotosTrackerController *self)
static void
photos_tracker_controller_query_error (PhotosTrackerController *self, GError *error)
const gchar *primary = _("Unable to fetch the list of photos");
const gchar *primary;
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
primary = _("Unable to find Tracker on your operating system");
primary = _("Unable to fetch the list of photos");
g_signal_emit (self, signals[QUERY_ERROR], 0, primary, error->message);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment