[gnome-shell] search: Initialise searchInProgress when search providers are registered



commit 809d92129b5856b081dbf08632daa4614669e82c
Author: Philip Withnall <withnall endlessm com>
Date:   Fri Jan 18 13:17:21 2019 +0000

    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

 js/ui/search.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 4adf50217..16bd8cf20 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -473,6 +473,7 @@ var SearchResults = new Lang.Class({
     },
 
     _registerProvider(provider) {
+        provider.searchInProgress = false;
         this._providers.push(provider);
         this._ensureProviderDisplay(provider);
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]