|
|
@ -186,10 +186,14 @@ class ParentPanelController: NSWindowController { |
|
|
|
selector: #selector(systemTimezoneDidChange), |
|
|
|
selector: #selector(systemTimezoneDidChange), |
|
|
|
name: NSNotification.Name.NSSystemTimeZoneDidChange, |
|
|
|
name: NSNotification.Name.NSSystemTimeZoneDidChange, |
|
|
|
object: nil) |
|
|
|
object: nil) |
|
|
|
NotificationCenter.default.addObserver(self, |
|
|
|
NotificationCenter.default.addObserver(forName: NSUbiquitousKeyValueStore.didChangeExternallyNotification, |
|
|
|
selector: #selector(ubiquitousStoreDidChange), |
|
|
|
object: self, |
|
|
|
name: NSUbiquitousKeyValueStore.didChangeExternallyNotification, |
|
|
|
queue: OperationQueue.main) { [weak self] _ in |
|
|
|
object: nil) |
|
|
|
if let sSelf = self { |
|
|
|
|
|
|
|
sSelf.mainTableView.reloadData() |
|
|
|
|
|
|
|
sSelf.setScrollViewConstraint() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Setup upcoming events view |
|
|
|
// Setup upcoming events view |
|
|
|
upcomingEventContainerView.setAccessibility("UpcomingEventView") |
|
|
|
upcomingEventContainerView.setAccessibility("UpcomingEventView") |
|
|
@ -247,14 +251,6 @@ class ParentPanelController: NSWindowController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Backing defaults changed |
|
|
|
|
|
|
|
@objc func ubiquitousStoreDidChange() { |
|
|
|
|
|
|
|
OperationQueue.main.addOperation { |
|
|
|
|
|
|
|
self.mainTableView.reloadData() |
|
|
|
|
|
|
|
self.setScrollViewConstraint() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private func updateHomeObject(with customLabel: String, coordinates: CLLocationCoordinate2D?) { |
|
|
|
private func updateHomeObject(with customLabel: String, coordinates: CLLocationCoordinate2D?) { |
|
|
|
let timezones = DataStore.shared().timezones() |
|
|
|
let timezones = DataStore.shared().timezones() |
|
|
|
|
|
|
|
|
|
|
|