weather: Mark conditions as significant
Otherwise the passed phenomenon/qualifier are ignored and a fallback string is used.
This commit is contained in:
parent
5c37facc08
commit
156032a7ec
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user