Move Preferences to Swift.
This commit is contained in:
1 parent
a772c499f7
commit
05f27e845a
12 files changed
+287
-349
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user