mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-10-29 17:58:35 +00:00
Fix for temperature value with decimals
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user