search: Initialise searchInProgress when search providers are registered

This avoids the following warning sometimes happening later:

JS WARNING: [resource:///org/gnome/shell/ui/search.js 701]: reference to undefined property "searchInProgress"

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/357
This commit is contained in:
Philip Withnall 2019-01-18 13:17:21 +00:00 committed by Florian Müllner
parent 8840608a25
commit 809d92129b

View File

@ -473,6 +473,7 @@ var SearchResults = new Lang.Class({
}, },
_registerProvider(provider) { _registerProvider(provider) {
provider.searchInProgress = false;
this._providers.push(provider); this._providers.push(provider);
this._ensureProviderDisplay(provider); this._ensureProviderDisplay(provider);
}, },