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.
This commit is contained in:
Jasper St. Pierre 2014-09-11 15:36:40 -06:00
parent 33e35f269f
commit b9b4886a6f

View File

@ -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