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:
parent
33e35f269f
commit
b9b4886a6f
@ -335,9 +335,10 @@ const SearchResultsBase = new Lang.Class({
|
|||||||
let hasMoreResults = results.length < providerResults.length;
|
let hasMoreResults = results.length < providerResults.length;
|
||||||
|
|
||||||
this._ensureResultActors(results, Lang.bind(this, function(successful) {
|
this._ensureResultActors(results, Lang.bind(this, function(successful) {
|
||||||
|
if (!successful) {
|
||||||
this._clearResultDisplay();
|
this._clearResultDisplay();
|
||||||
if (!successful)
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// To avoid CSS transitions causing flickering when
|
// To avoid CSS transitions causing flickering when
|
||||||
// the first search result stays the same, we hide the
|
// the first search result stays the same, we hide the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user