searchDisplay: Remove the providerIcon from the providerMeta
Since the resultsDisplay is tracking it, it's not needed. https://bugzilla.gnome.org/show_bug.cgi?id=693836
This commit is contained in:
parent
32a53f7412
commit
747faa43ae
@ -401,12 +401,10 @@ const SearchResults = new Lang.Class({
|
|||||||
createProviderMeta: function(provider) {
|
createProviderMeta: function(provider) {
|
||||||
let providerBox = new St.BoxLayout({ style_class: 'search-section',
|
let providerBox = new St.BoxLayout({ style_class: 'search-section',
|
||||||
vertical: true });
|
vertical: true });
|
||||||
let providerIcon = null;
|
|
||||||
let resultDisplay = null;
|
let resultDisplay = null;
|
||||||
|
|
||||||
if (provider.appInfo) {
|
if (provider.appInfo) {
|
||||||
resultDisplay = new ListSearchResults(provider);
|
resultDisplay = new ListSearchResults(provider);
|
||||||
providerIcon = resultDisplay.providerIcon;
|
|
||||||
} else {
|
} else {
|
||||||
resultDisplay = new GridSearchResults(provider);
|
resultDisplay = new GridSearchResults(provider);
|
||||||
}
|
}
|
||||||
@ -423,7 +421,6 @@ const SearchResults = new Lang.Class({
|
|||||||
|
|
||||||
this._providerMeta.push({ provider: provider,
|
this._providerMeta.push({ provider: provider,
|
||||||
actor: providerBox,
|
actor: providerBox,
|
||||||
icon: providerIcon,
|
|
||||||
resultDisplay: resultDisplay });
|
resultDisplay: resultDisplay });
|
||||||
this._content.add(providerBox);
|
this._content.add(providerBox);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user