mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 01:18:39 +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 = ""
|
||||
|
||||
if let main = json["main"] as? [String : AnyObject] {
|
||||
if let temp = main["temp"] as? Int {
|
||||
temperature = temp
|
||||
if let temp = main["temp"] as? Double {
|
||||
temperature = Int(temp)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user