Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4679 from toggl-open-source/fix/duration-date-ana…
Browse files Browse the repository at this point in the history
…lytics

Fix "date change" analytics sending at app launch (mac)
  • Loading branch information
skel35 authored Nov 17, 2020
2 parents 46d6ae5 + 101ed3a commit 55a277b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,15 @@ class TimeEditView: NSView {

// MARK: - Overrides

required init?(coder: NSCoder) {
dateValue = Date()
super.init(coder: coder)
}

override func awakeFromNib() {
super.awakeFromNib()
dateValue = Date()

update(with: dateValue)

// nextDayButton is the last control in key view loop
nextDayButton.didPressKey = { [weak self] key, modifiers in
Expand Down

0 comments on commit 55a277b

Please sign in to comment.