Move Preferences to Swift.

This commit is contained in:
Damiano Galassi committed 2017-08-21 16:30:53 +02:00
1 parent a772c499f7
commit 05f27e845a
12 files changed
+287 -349

No files matched your search

+2 -2
View File
@@ -65,7 +65,7 @@ import Cocoa
private let url: URL?
// MARK: - Static methods
@objc public static func clearRecentSearches() {
public static func clearRecentSearches() {
UserDefaults.standard.removeObject(forKey: "Previously used TV series")
}
@@ -77,7 +77,7 @@ import Cocoa
UserDefaults.standard.set(searches, forKey: "Previously used TV series")
}
@objc public static func deleteCachedMetadata() {
public static func deleteCachedMetadata() {
URLCache.shared.removeAllCachedResponses()
}