weather: Pass providers after application-id and contact-info

It now requires both application-id and contact-info to properly
set the enabled providers.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1571>
This commit is contained in:
Georges Basile Stavracas Neto 2021-01-14 16:47:52 -03:00
parent 40b65f21f3
commit c5e5514c51

View File

@ -73,9 +73,9 @@ var WeatherClient = class {
GWeather.Provider.MET_NO |
GWeather.Provider.OWM;
this._weatherInfo = new GWeather.Info({
enabled_providers: providers,
application_id: 'org.gnome.Shell',
contact_info: 'https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/master/gnome-shell.doap',
enabled_providers: providers,
});
this._weatherInfo.connect_after('updated', () => {
this._lastUpdate = GLib.DateTime.new_now_local();