Browse Source

Fix: Unable to remove upcoming event view.

pull/101/head
Abhishek 3 years ago
parent
commit
d234eb2020
  1. 6
      Clocker/Panel/ParentPanelController.swift

6
Clocker/Panel/ParentPanelController.swift

@ -701,11 +701,9 @@ class ParentPanelController: NSWindowController {
let eventCenter = EventCenter.sharedCenter()
let now = Date()
if let events = eventCenter.eventsForDate[NSCalendar.autoupdatingCurrent.startOfDay(for: now)], events.isEmpty == false {
guard let upcomingEvent = eventCenter.nextOccuring(events), let meetingLink = upcomingEvent.meetingURL else {
return
if let upcomingEvent = eventCenter.nextOccuring(events), let meetingLink = upcomingEvent.meetingURL {
NSWorkspace.shared.open(meetingLink)
}
NSWorkspace.shared.open(meetingLink)
return
}
if self.stackView.arrangedSubviews.contains(self.upcomingEventView!), self.upcomingEventView?.isHidden == false {

Loading…
Cancel
Save