searchDisplay: Check the provider container for visibility
It's the provider container that might be !visible, not the individual results.
This commit is contained in:
parent
ce9c1a1f7a
commit
c2f304f3bc
@ -348,8 +348,11 @@ const SearchResults = new Lang.Class({
|
|||||||
if (meta.hasPendingResults)
|
if (meta.hasPendingResults)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!meta.actor.visible)
|
||||||
|
continue;
|
||||||
|
|
||||||
let firstResult = meta.resultDisplay.getFirstResult();
|
let firstResult = meta.resultDisplay.getFirstResult();
|
||||||
if (firstResult && firstResult.actor.visible) {
|
if (firstResult) {
|
||||||
newDefaultResult = firstResult;
|
newDefaultResult = firstResult;
|
||||||
break; // select this one!
|
break; // select this one!
|
||||||
}
|
}
|
||||||
@ -436,7 +439,7 @@ const SearchResults = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
activateDefault: function() {
|
activateDefault: function() {
|
||||||
if (this._defaultResult && this._defaultResult.actor.visible)
|
if (this._defaultResult)
|
||||||
this._defaultResult.activate();
|
this._defaultResult.activate();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user