Slightly change text of "Weather data provided by"-button, to show the name of the services instead of their url.

merge-requests/218/head
Jens Lody 8 years ago
parent 6deee4bd2f
commit 39821fa26e
  1. 4
      src/extension.js

@ -377,7 +377,7 @@ const OpenweatherMenuButton = new Lang.Class({
this.refreshWeatherCurrent = OpenweathermapOrg.refreshWeatherCurrent;
this.refreshWeatherForecast = OpenweathermapOrg.refreshWeatherForecast;
this.weatherProvider = "https://openweathermap.org/";
this.weatherProvider = "OpenWeatherMap";
if (this._appid.toString().trim() === '')
Main.notify("Openweather", _("Openweathermap.org does not work without an api-key.\nEither set the switch to use the extensions default key in the preferences dialog to on or register at http://openweathermap.org/appid and paste your personal key into the preferences dialog."));
@ -391,7 +391,7 @@ const OpenweatherMenuButton = new Lang.Class({
this.refreshWeatherCurrent = DarkskyNet.refreshWeatherCurrent;
this.refreshWeatherForecast = function() {};
this.weatherProvider = "https://darksky.net/";
this.weatherProvider = "Dark Sky";
this.fc_locale = 'en';

Loading…
Cancel
Save