mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -240,7 +240,9 @@ var WeatherSection = new Lang.Class({
|
|||
|
||||
let [ok, phenomenon, qualifier] = info.get_value_conditions();
|
||||
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();
|
||||
return GWeather.Sky.to_string_full(sky, options);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue