Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update date every time when clock restart #20

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Conversation

zztin
Copy link
Owner

@zztin zztin commented Jul 20, 2020

(Thanks for sending a pull request! Please fill in the following content to let us know better about this change.)

Types of changes

Please put an x in the box that applies

  • Bugfix
  • New feature
  • Refactoring
  • Breaking change (any change that would cause existing functionality to not work as expected)
  • Documentation Update
  • Other (please describe)

Description

Describe what the change is
Previously the date on top of the clock is set once launched. Now the date is re-checked every time a clock finishes.

Steps to Test This Pull Request

Steps to reproduce the behavior:
I haven't think of a nice way of testing the desired behavior.

Copy link
Collaborator

@tai271828 tai271828 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation is elegant. I like it very much.

not for this pull request: I smell some duplicated lines. Maybe we could a function like refresh_widgets in the future pull request.

@tai271828 tai271828 merged commit 6f7639d into master Jul 21, 2020
@zztin
Copy link
Owner Author

zztin commented Jul 21, 2020 via email

@zztin zztin deleted the auto_update_date branch August 9, 2020 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants