weather: Mark conditions as significant

Otherwise the passed phenomenon/qualifier are ignored and a fallback
string is used.
This commit is contained in:
Florian Müllner 2017-10-04 17:02:36 +02:00
parent 5c37facc08
commit 156032a7ec

View File

@ -240,7 +240,9 @@ var WeatherSection = new Lang.Class({
let [ok, phenomenon, qualifier] = info.get_value_conditions(); let [ok, phenomenon, qualifier] = info.get_value_conditions();
if (ok) if (ok)
return new GWeather.Conditions({ phenomenon, qualifier}).to_string_full(options); return new GWeather.Conditions({ significant: true,
phenomenon,
qualifier }).to_string_full(options);
let [, sky] = info.get_value_sky(); let [, sky] = info.get_value_sky();
return GWeather.Sky.to_string_full(sky, options); return GWeather.Sky.to_string_full(sky, options);