|
|
@ -196,8 +196,7 @@ class ParentPanelController: NSWindowController { |
|
|
|
name: NSNotification.Name.NSSystemTimeZoneDidChange, |
|
|
|
name: NSNotification.Name.NSSystemTimeZoneDidChange, |
|
|
|
object: nil) |
|
|
|
object: nil) |
|
|
|
|
|
|
|
|
|
|
|
if DataStore.shared().shouldDisplay(.sync) { |
|
|
|
NotificationCenter.default.addObserver(forName: DataStore.didSyncFromExternalSourceNotification, |
|
|
|
NotificationCenter.default.addObserver(forName: NSUbiquitousKeyValueStore.didChangeExternallyNotification, |
|
|
|
|
|
|
|
object: self, |
|
|
|
object: self, |
|
|
|
queue: OperationQueue.main) |
|
|
|
queue: OperationQueue.main) |
|
|
|
{ [weak self] _ in |
|
|
|
{ [weak self] _ in |
|
|
@ -206,7 +205,6 @@ class ParentPanelController: NSWindowController { |
|
|
|
sSelf.setScrollViewConstraint() |
|
|
|
sSelf.setScrollViewConstraint() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Setup upcoming events view |
|
|
|
// Setup upcoming events view |
|
|
|
upcomingEventContainerView.setAccessibility("UpcomingEventView") |
|
|
|
upcomingEventContainerView.setAccessibility("UpcomingEventView") |
|
|
|