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
@@ -26,10 +26,11 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
|
||||
self.currentRow = 0
|
||||
self.presetManager = PresetManager.shared
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
self.title = NSLocalizedString("Sets", comment: "")
|
||||
}
|
||||
|
||||
override func loadView() {
|
||||
super.loadView()
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
observer = NotificationCenter.default.addObserver(forName: presetManager.updateNotification,
|
||||
object: nil,
|
||||
@@ -99,7 +100,6 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@IBAction func toggleInfoWindow(_ sender: NSView) {
|
||||
let rowIndex = tableView.row(for: sender)
|
||||
|
||||
|
||||
Reference in new issue
Block a user