From c2e7bb146a91f4c0176d57202fd2ef3b095285a8 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sat, 5 Feb 2022 21:21:33 -0500 Subject: [PATCH] Update ParentPanelController.swift --- Clocker/Panel/ParentPanelController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index bd14813d..090af7b7 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -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() + } } } }