Browse Source

Update ParentPanelController.swift

pull/113/head
Abhishek 3 years ago
parent
commit
c2e7bb146a
  1. 2
      Clocker/Panel/ParentPanelController.swift

2
Clocker/Panel/ParentPanelController.swift

@ -143,10 +143,12 @@ class ParentPanelController: NSWindowController {
futureSliderRangeObserver = UserDefaults.standard.observe(\.sliderDayRange, options: [.new]) { _, change in futureSliderRangeObserver = UserDefaults.standard.observe(\.sliderDayRange, options: [.new]) { _, change in
if change.newValue != nil { if change.newValue != nil {
self.adjustFutureSliderBasedOnPreferences() self.adjustFutureSliderBasedOnPreferences()
if self.modernSlider != nil {
self.modernSlider.reloadData() self.modernSlider.reloadData()
} }
} }
} }
}
override func awakeFromNib() { override func awakeFromNib() {
super.awakeFromNib() super.awakeFromNib()

Loading…
Cancel
Save