Skip to content

Commit

Permalink
Update ParentPanelController.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Feb 6, 2022
1 parent 5007a22 commit c2e7bb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Clocker/Panel/ParentPanelController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ class ParentPanelController: NSWindowController {
futureSliderRangeObserver = UserDefaults.standard.observe(\.sliderDayRange, options: [.new]) { _, change in
if change.newValue != nil {
self.adjustFutureSliderBasedOnPreferences()
self.modernSlider.reloadData()
if self.modernSlider != nil {
self.modernSlider.reloadData()
}
}
}
}
Expand Down

0 comments on commit c2e7bb1

Please sign in to comment.