From fa43387ed812a19b8b42df8ae46a9a0029d71584 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sat, 26 Jun 2021 23:05:55 -0500 Subject: [PATCH 1/2] Cleanup! --- Clocker/Panel/UI/HourMarkerViewItem.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Clocker/Panel/UI/HourMarkerViewItem.swift b/Clocker/Panel/UI/HourMarkerViewItem.swift index 253c59e..4058f17 100644 --- a/Clocker/Panel/UI/HourMarkerViewItem.swift +++ b/Clocker/Panel/UI/HourMarkerViewItem.swift @@ -18,18 +18,6 @@ class HourMarkerViewItem: NSCollectionViewItem { verticalLineView.layer?.backgroundColor = NSColor.lightGray.cgColor } - func setupLineColor() { - for subview in view.subviews where subview is NSBox { - subview.layer?.backgroundColor = NSColor.black.cgColor - } - } - - func resetLineColor() { - for subview in view.subviews where subview is NSBox { - subview.layer?.backgroundColor = nil - } - } - override var acceptsFirstResponder: Bool { return false } From c6883c9233a926b70792c283d9662c62645bb4b1 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 27 Jun 2021 19:53:56 -0500 Subject: [PATCH 2/2] Update ParentPanelController.swift --- Clocker/Panel/ParentPanelController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index 0f8f202..9144399 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -593,7 +593,7 @@ class ParentPanelController: NSWindowController { if let futureSliderCell = futureSlider.cell as? CustomSliderCell, futureSliderCell.tracking == true { return } - if modernSlider.isHidden == false, modernContainerView.currentlyInFocus { + if modernContainerView != nil, modernSlider.isHidden == false, modernContainerView.currentlyInFocus { return } let dataOperation = TimezoneDataOperations(with: model)