|
|
@ -45,7 +45,7 @@ class PreferencesViewController: ParentViewController { |
|
|
|
let dictionary = NSDictionary(contentsOfFile: path), |
|
|
|
let dictionary = NSDictionary(contentsOfFile: path), |
|
|
|
let apiKey = dictionary["GeocodingKey"] as? String |
|
|
|
let apiKey = dictionary["GeocodingKey"] as? String |
|
|
|
else { |
|
|
|
else { |
|
|
|
// assertionFailure("Unable to find the API key") |
|
|
|
assertionFailure("Unable to find the API key") |
|
|
|
return "" |
|
|
|
return "" |
|
|
|
} |
|
|
|
} |
|
|
|
return apiKey |
|
|
|
return apiKey |
|
|
@ -259,7 +259,7 @@ class PreferencesViewController: ParentViewController { |
|
|
|
|
|
|
|
|
|
|
|
private func setupShortcutObserver() { |
|
|
|
private func setupShortcutObserver() { |
|
|
|
let defaults = NSUserDefaultsController.shared |
|
|
|
let defaults = NSUserDefaultsController.shared |
|
|
|
|
|
|
|
recorderControl.setAccessibility("ShortcutControl") |
|
|
|
recorderControl.bind(NSBindingName.value, |
|
|
|
recorderControl.bind(NSBindingName.value, |
|
|
|
to: defaults, |
|
|
|
to: defaults, |
|
|
|
withKeyPath: PreferencesConstants.hotKeyPathIdentifier, |
|
|
|
withKeyPath: PreferencesConstants.hotKeyPathIdentifier, |
|
|
|