[gnome-shell] weather: Mark conditions as significant



commit 156032a7ec5a292bf417eb1055a643aebf9847fd
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Oct 4 17:02:36 2017 +0200

    weather: Mark conditions as significant
    
    Otherwise the passed phenomenon/qualifier are ignored and a fallback
    string is used.

 js/ui/dateMenu.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 4f46a0d..1d48fa8 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]