[gnome-shell] search: Don't bother clearing the result display twice



commit b9b4886a6fec0d99ae75310b3103d2945a84bcc1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Sep 11 15:36:40 2014 -0600

    search: Don't bother clearing the result display twice
    
    It's just extra work, and breaks our hide/show hack to prevent the
    flashing on search results.

 js/ui/search.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 47ab3ac..80b2d08 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -335,9 +335,10 @@ const SearchResultsBase = new Lang.Class({
             let hasMoreResults = results.length < providerResults.length;
 
             this._ensureResultActors(results, Lang.bind(this, function(successful) {
-                this._clearResultDisplay();
-                if (!successful)
+                if (!successful) {
+                    this._clearResultDisplay();
                     return;
+                }
 
                 // To avoid CSS transitions causing flickering when
                 // the first search result stays the same, we hide the


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