search-locations-dialog: Expose single directory setting

We handle index-single-directories and index-recursive-directories
different, but the user has no idea.  Add a subtitle to clarify
the difference in behavior.
This commit is contained in:
Corey Berla 2024-02-05 10:18:12 -08:00 committed by Matthijs Velsink
parent 0268ad08cd
commit aae5cd27bd

View file

@ -572,6 +572,9 @@ create_row_for_place (CcSearchLocationsDialog *self, Place *place)
g_object_set_data_full (G_OBJECT (row), "place", place, (GDestroyNotify) place_free);
if (g_str_equal (place->settings_key, TRACKER_KEY_SINGLE_DIRECTORIES))
adw_action_row_set_subtitle (row, _("Subfolders must be manually added for this location"));
if (place->place_type == PLACE_OTHER)
{
/* Other locations can only be removed */