[gnome-weather] Prevent -0° showing up on ui



commit 98b6143e0534f571906667da56087cf904685a47
Author: Vitaly Dyachkov <obyknovenius me com>
Date:   Thu Feb 11 17:32:24 2021 +0100

    Prevent -0° showing up on ui

 src/app/city.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/app/city.js b/src/app/city.js
index c3c15b7..91a6117 100644
--- a/src/app/city.js
+++ b/src/app/city.js
@@ -205,7 +205,7 @@ var WeatherWidget = GObject.registerClass({
         this._conditionsImage.iconName = info.get_icon_name() + '-large';
 
         const [, tempValue] = info.get_value_temp(GWeather.TemperatureUnit.DEFAULT);
-        this._temperatureLabel.label = '%.0f°'.format(tempValue);
+        this._temperatureLabel.label = '%d°'.format(Math.round(tempValue));
 
         const [, apparentValue] = info.get_value_apparent(GWeather.TemperatureUnit.DEFAULT);
         this._apparentLabel.label = _('Feels like %.0f°').format(apparentValue);


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