Refactor the document window controller and the prefs controller. Some regression still in there.
This commit is contained in:
49 files changed
+2505
-2379
No files matched your search
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// GeneralPrefsViewController.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class GeneralPrefsViewController: NSViewController {
|
||||
|
||||
init() {
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
self.title = NSLocalizedString("General", comment: "")
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
@IBAction func clearRecentSearches(_ sender: Any) {
|
||||
MetadataSearchController.clearRecentSearches()
|
||||
}
|
||||
|
||||
@IBAction func deleteCachedMetadata(_ sender: Any) {
|
||||
MetadataSearchController.deleteCachedMetadata()
|
||||
}
|
||||
|
||||
@IBAction func updateRatingsCountry(_ sender: Any) {
|
||||
MP42Ratings.defaultManager.updateCountry()
|
||||
}
|
||||
|
||||
@objc dynamic var ratingsCountries: [String] { return MP42Ratings.defaultManager.ratingsCountries }
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user