Skip to content

Commit

Permalink
Update ParentPanelController.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Jul 23, 2021
1 parent aa0259f commit b26d9bd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Clocker/Panel/ParentPanelController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,21 @@ class ParentPanelController: NSWindowController {
scrollViewHeight.constant = (screenHeight() - 100)
}
}

if DataStore.shared().shouldDisplay(.futureSlider) {
let isModernSliderDisplayed = DataStore.shared().retrieve(key: CLDisplayFutureSliderKey) as? NSNumber ?? 0
if isModernSliderDisplayed == 0 {
if scrollViewHeight.constant >= (screenHeight() - 200) {
scrollViewHeight.constant = (screenHeight() - 300)
}
} else {
if scrollViewHeight.constant >= (screenHeight() - 200) {
scrollViewHeight.constant = (screenHeight() - 200)
}
}


}
}

func updateDefaultPreferences() {
Expand Down

0 comments on commit b26d9bd

Please sign in to comment.