1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-11 17:38:38 +00:00

Fix for temperature value with decimals

This commit is contained in:
Daniel Apatin 2018-04-20 16:24:00 +03:00 committed by GitHub
parent 3e35e03bfb
commit ac234aa4bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,8 +81,8 @@ class WeatherBarItem: CustomButtonTouchBarItem, CLLocationManagerDelegate {
var condition_icon = "" var condition_icon = ""
if let main = json["main"] as? [String : AnyObject] { if let main = json["main"] as? [String : AnyObject] {
if let temp = main["temp"] as? Int { if let temp = main["temp"] as? Double {
temperature = temp temperature = Int(temp)
} }
} }