From cd8b5955526022797099f96a3d1ad01ce0f60501 Mon Sep 17 00:00:00 2001 From: ad Date: Fri, 20 Apr 2018 14:42:36 +0300 Subject: [PATCH] - --- MTMR/ItemsParsing.swift | 2 +- MTMR/TouchBarController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MTMR/ItemsParsing.swift b/MTMR/ItemsParsing.swift index 9c13304..a01af0c 100644 --- a/MTMR/ItemsParsing.swift +++ b/MTMR/ItemsParsing.swift @@ -83,7 +83,7 @@ class SupportedTypesHolder { return (item: .weather(interval: interval ?? 1800.00, units: units ?? "metric", api_key: api_key ?? "32c4256d09a4c52b38aecddba7a078f6", icon_type: icon_type ?? "text"), action: action, parameters: [:]) }, "currency": { decoder in - enum CodingKeys: String, CodingKey { case refreshInterval; case from; case to; case action } + enum CodingKeys: String, CodingKey { case refreshInterval; case from; case to } let container = try decoder.container(keyedBy: CodingKeys.self) let interval = try container.decodeIfPresent(Double.self, forKey: .refreshInterval) let from = try container.decodeIfPresent(String.self, forKey: .from) diff --git a/MTMR/TouchBarController.swift b/MTMR/TouchBarController.swift index e351dc0..290b483 100644 --- a/MTMR/TouchBarController.swift +++ b/MTMR/TouchBarController.swift @@ -225,7 +225,7 @@ class TouchBarController: NSObject, NSTouchBarDelegate { case .openUrl(url: let url): return { if let url = URL(string: url), NSWorkspace.shared.open(url) { - print("URL was successfully opened") +// print("URL was successfully opened") } else { print("error", url) }