1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 00:58:37 +00:00

Update my preset to actual. Fix xcode error

This commit is contained in:
Toxblh 2018-04-13 21:15:02 +01:00
parent ccc3a2269b
commit d72fb0ef7a
2 changed files with 63 additions and 41 deletions

View File

@ -84,7 +84,7 @@ class SupportedTypesHolder {
enum CodingKeys: String, CodingKey { case refreshInterval }
let container = try decoder.container(keyedBy: CodingKeys.self)
let interval = try container.decodeIfPresent(Double.self, forKey: .refreshInterval)
return (item: .brightness(refreshInterval: interval ?? 0.5), action: .none, parameters: [])
return (item: .brightness(refreshInterval: interval ?? 0.5), action: .none, parameters: [:])
},
"battery": { decoder in
enum CodingKeys: String, CodingKey { case refreshInterval }

File diff suppressed because one or more lines are too long