search: Stop special-casing GNOME Settings on search

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1282#note_1617502

From the chat:
<aday> i think it's fine to allow people to disable settings search.
<aday> the issue i see here is that the shell doesn't follow the search
results order. settings is always at the top of the results list
<aday> if settings search is to appear in the list, then that should
work as you'd expect

We are also removing the special-casing in the GNOME Settings side,
see https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1555

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2584>
This commit is contained in:
Felipe Borges 2022-12-15 11:56:54 +01:00 committed by Marge Bot
parent 538c7c397a
commit 0be20aba88

View File

@ -144,9 +144,6 @@ function loadRemoteSearchProviders(searchSettings) {
let sortOrder = searchSettings.get_strv('sort-order');
// Special case gnome-control-center to be always active and always first
sortOrder.unshift('org.gnome.Settings.desktop');
const disabled = searchSettings.get_strv('disabled');
const enabled = searchSettings.get_strv('enabled');