File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ class FinalOnboardingViewController: NSViewController {
7070 }
7171
7272 @IBAction func localizationAction( _: Any ) {
73- guard let localizationURL = URL ( string: AboutUsConstants . TwitterLink ) ,
74- let languageCode = Locale . preferredLanguages. first else { return }
73+ guard let localizationURL = URL ( string: AboutUsConstants . TwitterFollowIntentLink ) ,
74+ let languageCode = Locale . preferredLanguages. first else { return }
7575
7676 NSWorkspace . shared. open ( localizationURL)
7777
Original file line number Diff line number Diff line change @@ -700,19 +700,19 @@ class ParentPanelController: NSWindowController {
700700 }
701701
702702 @IBAction func dismissNextEventLabel( _: NSButton ) {
703+ let eventCenter = EventCenter . sharedCenter ( )
704+ let now = Date ( )
705+ if let events = eventCenter. eventsForDate [ NSCalendar . autoupdatingCurrent. startOfDay ( for: now) ] , events. isEmpty == false {
706+ if let upcomingEvent = eventCenter. nextOccuring ( events) , let meetingLink = upcomingEvent. meetingURL {
707+ NSWorkspace . shared. open ( meetingLink)
708+ }
709+ } else {
703710 removeUpcomingEventView ( )
711+ }
704712 }
705713
706714 func removeUpcomingEventView( ) {
707715 OperationQueue . main. addOperation {
708- let eventCenter = EventCenter . sharedCenter ( )
709- let now = Date ( )
710- if let events = eventCenter. eventsForDate [ NSCalendar . autoupdatingCurrent. startOfDay ( for: now) ] , events. isEmpty == false {
711- if let upcomingEvent = eventCenter. nextOccuring ( events) , let meetingLink = upcomingEvent. meetingURL {
712- NSWorkspace . shared. open ( meetingLink)
713- }
714- }
715-
716716 if self . stackView. arrangedSubviews. contains ( self . upcomingEventView!) , self . upcomingEventView? . isHidden == false {
717717 self . upcomingEventView? . isHidden = true
718718 UserDefaults . standard. set ( " NO " , forKey: CLShowUpcomingEventView)
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ struct AboutUsConstants {
88 static let GitHubURL = " https://github.com/abhishekbanthia/Clocker/?ref=ClockerApp "
99 static let PayPalURL = " https://paypal.me/abhishekbanthia1712 "
1010 static let TwitterLink = " https://twitter.com/clocker_support/?ref=ClockerApp "
11+ static let TwitterFollowIntentLink = " https://twitter.com/intent/follow?screen_name=clocker_support "
1112 static let AppStoreLink = " macappstore://itunes.apple.com/us/app/clocker/id1056643111?action=write-review "
1213 static let CrowdInLocalizationLink = " https://crwd.in/clocker "
1314}
You can’t perform that action at this time.
0 commit comments