Skip to content

Commit f219894

Browse files
committed
Merge branch 'master' of https://github.com/n0shake/Clocker
2 parents 3b453de + c48ef18 commit f219894

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Clocker/Onboarding/FinalOnboardingViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Clocker/Panel/ParentPanelController.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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)

Clocker/Preferences/About/AboutViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)