Skip to content

Commit

Permalink
Fix things.
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Aug 14, 2021
1 parent c82d298 commit 9e16294
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions Clocker/Clocker/ca.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
3 changes: 3 additions & 0 deletions Clocker/Clocker/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,8 @@
"Daylights Saving transition will occur in < 24 hours" = "Daylights Saving transition will occur in < 24 hours";

"Copied to Clipboard" = "Copied to Clipboard";

// Upcoming Event View
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/hi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/hr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/nl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/pt-BR.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
1 change: 1 addition & 0 deletions Clocker/Clocker/zh-Hant.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";
9 changes: 7 additions & 2 deletions Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class UpcomingEventViewItem: NSCollectionViewItem {
zoomButton.image = nil
eventTitleLabel.stringValue = ""
eventSubtitleButton.stringValue = ""
meetingLink = nil
}

override var acceptsFirstResponder: Bool {
Expand Down Expand Up @@ -85,8 +86,10 @@ class UpcomingEventViewItem: NSCollectionViewItem {
}

func setupEmptyState() {
let subtitle = NSCalendar.autoupdatingCurrent.isDateInWeekend(Date()) ? NSLocalizedString("Happy Weekend.", comment: "Button Title for no upcoming event") : NSLocalizedString("Great going.", comment: "Button Title for no upcoming event")

setAlternateState(NSLocalizedString("No upcoming events for today!", comment: "Next Event Label with no upcoming event"),
NSLocalizedString("Great going.", comment: "Button Title for no upcoming event"),
subtitle,
NSColor.systemGreen,
nil)
}
Expand Down Expand Up @@ -121,7 +124,9 @@ class UpcomingEventViewItem: NSCollectionViewItem {
panelDelegate?.didClickSupplementaryButton(sender)
}

@objc func zoomButtonAction(_: Any) {
@objc func zoomButtonAction(_ sender: NSButton) {
guard sender.image != nil else { return }

if let meetingURL = meetingLink {
NSWorkspace.shared.open(meetingURL)
} else {
Expand Down

0 comments on commit 9e16294

Please sign in to comment.