From e98e0476d4d2b732ea368ab869f081b18bbb290e Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sat, 11 Jul 2020 14:41:36 -0500 Subject: [PATCH] Rollback! --- Clocker/Preferences/Calendar/CalendarViewController.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Clocker/Preferences/Calendar/CalendarViewController.swift b/Clocker/Preferences/Calendar/CalendarViewController.swift index 1b6196c..225f03e 100644 --- a/Clocker/Preferences/Calendar/CalendarViewController.swift +++ b/Clocker/Preferences/Calendar/CalendarViewController.swift @@ -81,12 +81,8 @@ class CalendarViewController: ParentViewController { super.viewWillAppear() verifyCalendarAccess() - - if DataStore.shared().shouldDisplay(ViewType.upcomingEventView) { - showSegmentedControl.selectedSegment = 0 - } else { - showSegmentedControl.selectedSegment = 1 - } + showSegmentedControl.selectedSegment = DataStore.shared().shouldDisplay(ViewType.upcomingEventView) ? 0 : 1 + showNextMeetingInMenubarControl.isEnabled = DataStore.shared().shouldDisplay(.menubarCompactMode) ? false : true } private func verifyCalendarAccess() {