diff --git a/MTMR/Info.plist b/MTMR/Info.plist index a3abddc..ad299c4 100644 --- a/MTMR/Info.plist +++ b/MTMR/Info.plist @@ -17,9 +17,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.19.2 + 0.19.3 CFBundleVersion - 129 + 130 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion diff --git a/MTMR/ItemsParsing.swift b/MTMR/ItemsParsing.swift index ef76412..4cf6726 100644 --- a/MTMR/ItemsParsing.swift +++ b/MTMR/ItemsParsing.swift @@ -325,7 +325,7 @@ class SupportedTypesHolder { enum ItemType: Decodable { case staticButton(title: String) case appleScriptTitledButton(source: SourceProtocol, refreshInterval: Double) - case timeButton(formatTemplate: String, timeZone: String) + case timeButton(formatTemplate: String, timeZone: String?) case battery() case dock() case volume() @@ -394,7 +394,7 @@ enum ItemType: Decodable { case .timeButton: let template = try container.decodeIfPresent(String.self, forKey: .formatTemplate) ?? "HH:mm" let timeZone = try container.decodeIfPresent(String.self, forKey: .timeZone) ?? nil - self = .timeButton(formatTemplate: template, timeZone: timeZone!) + self = .timeButton(formatTemplate: template, timeZone: timeZone) case .battery: self = .battery()