search: reload search providers when installed applications change
Otherwise, a shell restart will be required after installing a new application, before its results can be seen in search. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/562
This commit is contained in:
parent
238b87d386
commit
40c2a403ac
@ -431,6 +431,9 @@ var SearchResults = class {
|
|||||||
this._cancellable = new Gio.Cancellable();
|
this._cancellable = new Gio.Cancellable();
|
||||||
|
|
||||||
this._registerProvider(new AppDisplay.AppSearchProvider());
|
this._registerProvider(new AppDisplay.AppSearchProvider());
|
||||||
|
|
||||||
|
let appSystem = Shell.AppSystem.get_default();
|
||||||
|
appSystem.connect('installed-changed', this._reloadRemoteProviders.bind(this));
|
||||||
this._reloadRemoteProviders();
|
this._reloadRemoteProviders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user