GtkSearchEngineSimple: Disable recursive search

It is too slow to be useful, rely on the Tracker engine to perform recursive search.

Fixes: #2392.
This commit is contained in:
Xavier Claessens 2020-01-26 07:40:46 -05:00
parent d877325a1e
commit 68bd429edd

View File

@ -109,7 +109,8 @@ search_thread_data_new (GtkSearchEngineSimple *engine,
data->engine = g_object_ref (engine);
data->directories = g_queue_new ();
data->query = g_object_ref (query);
data->recursive = _gtk_search_engine_get_recursive (GTK_SEARCH_ENGINE (engine));
/* Simple search engine is too slow to be recursive */
data->recursive = FALSE;
queue_if_local (data, gtk_query_get_location (query));
data->cancellable = g_cancellable_new ();