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:
parent
3e35e03bfb
commit
ac234aa4bf
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user