From b9b4886a6fec0d99ae75310b3103d2945a84bcc1 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 11 Sep 2014 15:36:40 -0600 Subject: [PATCH] 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 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui/search.js b/js/ui/search.js index 47ab3acdc..80b2d08fc 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