[gnome-weather] Prevent -0° showing up on ui
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Prevent -0° showing up on ui
- Date: Fri, 12 Feb 2021 13:45:09 +0000 (UTC)
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]