Browse Source

Formatting.

pull/101/head
Abhishek 3 years ago
parent
commit
e5f48668ae
  1. 2
      Clocker/ClockerUITests/PreferencesTest.swift
  2. 2
      Clocker/Events and Reminders/CalendarHandler.swift
  3. 1
      Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift

2
Clocker/ClockerUITests/PreferencesTest.swift

@ -307,7 +307,7 @@ class PreferencesTest: XCTestCase {
// Let's make sure we have > 1 timezones first // Let's make sure we have > 1 timezones first
let favourites = preferencesTable.tableRows let favourites = preferencesTable.tableRows
if (favourites.count < 2) { if favourites.count < 2 {
addAPlace(place: "UTC", to: app) addAPlace(place: "UTC", to: app)
} }

2
Clocker/Events and Reminders/CalendarHandler.swift

@ -158,7 +158,7 @@ extension EventCenter {
let relevantEvents = filteredEvents[autoupdatingCalendar.startOfDay(for: Date())] ?? [] let relevantEvents = filteredEvents[autoupdatingCalendar.startOfDay(for: Date())] ?? []
let filteredEvents = relevantEvents.filter { let filteredEvents = relevantEvents.filter {
$0.event.isAllDay == false && $0.event.startDate.timeIntervalSinceNow > -300 $0.event.isAllDay == false && $0.event.endDate.timeIntervalSinceNow > 0
} }
if filteredEvents.count == 1 { return filteredEvents.first } if filteredEvents.count == 1 { return filteredEvents.first }

1
Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift

@ -34,6 +34,7 @@ class UpcomingEventViewItem: NSCollectionViewItem {
} }
// MARK: Setup UI // MARK: Setup UI
func setup(_ title: String, func setup(_ title: String,
_ subtitle: String, _ subtitle: String,
_ color: NSColor, _ color: NSColor,

Loading…
Cancel
Save