mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-10 17:08:39 +00:00
* group items "decodeIfPresent" -> "decode"
This commit is contained in:
parent
9f2dd277fb
commit
d5483cdd03
@ -254,8 +254,8 @@ enum ItemType: Decodable {
|
||||
let interval = try container.decodeIfPresent(Double.self, forKey: .refreshInterval) ?? 1800.0
|
||||
self = .music(interval: interval)
|
||||
case .groupBar:
|
||||
let items = try container.decodeIfPresent([BarItemDefinition].self, forKey: .items)
|
||||
self = .groupBar(items: items!)
|
||||
let items = try container.decode([BarItemDefinition].self, forKey: .items)
|
||||
self = .groupBar(items: items)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user