[gnome-shell] weather: Mark conditions as significant
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] weather: Mark conditions as significant
- Date: Wed, 4 Oct 2017 16:27:19 +0000 (UTC)
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]