|
|
|
@ -40,6 +40,8 @@ class OnboardingSearchController: NSViewController {
|
|
|
|
|
super.viewDidLoad() |
|
|
|
|
|
|
|
|
|
view.wantsLayer = true |
|
|
|
|
|
|
|
|
|
searchResultsDataSource = SearchDataSource(with: searchBar, location: .onboarding) |
|
|
|
|
|
|
|
|
|
resultsTableView.isHidden = true |
|
|
|
|
resultsTableView.delegate = self |
|
|
|
@ -70,16 +72,6 @@ class OnboardingSearchController: NSViewController {
|
|
|
|
|
setupUndoButton() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override func viewWillAppear() { |
|
|
|
|
super.viewWillAppear() |
|
|
|
|
searchResultsDataSource = SearchDataSource(with: searchBar, location: .onboarding) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override func viewWillDisappear() { |
|
|
|
|
super.viewWillDisappear() |
|
|
|
|
searchResultsDataSource = nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
deinit { |
|
|
|
|
if let themeDidChangeNotif = themeDidChangeNotification { |
|
|
|
|
NotificationCenter.default.removeObserver(themeDidChangeNotif) |
|
|
|
|