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

other: skip battery duration draw if unknown #974

Merged
merged 3 commits into from
Jan 15, 2023

Conversation

ClementTsang
Copy link
Owner

@ClementTsang ClementTsang commented Jan 13, 2023

Description

A description of the change, what it does, and why it was made. If relevant (such as any change that modifies the UI), please provide screenshots of the changes:

Skips drawing the battery duration row if the duration is unknown.

Issue

If applicable, what issue does this address?

Closes: #

Testing

If relevant, please state how this was tested. All changes must be tested to work:

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2023

Codecov Report

Base: 20.68% // Head: 20.66% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (eeda457) compared to base (316891d).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #974      +/-   ##
==========================================
- Coverage   20.68%   20.66%   -0.02%     
==========================================
  Files          75       75              
  Lines       14653    14665      +12     
==========================================
  Hits         3031     3031              
- Misses      11622    11634      +12     
Impacted Files Coverage Δ
src/app.rs 0.00% <0.00%> (ø)
src/canvas/widgets/battery_display.rs 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ClementTsang ClementTsang force-pushed the skip_unknown_battery_duration_draw branch from a96125e to bfa826f Compare January 13, 2023 07:05
@ClementTsang ClementTsang marked this pull request as ready for review January 15, 2023 08:01
@ClementTsang ClementTsang force-pushed the skip_unknown_battery_duration_draw branch from bfa826f to eeda457 Compare January 15, 2023 16:42
@ClementTsang ClementTsang merged commit 571ec08 into master Jan 15, 2023
@ClementTsang ClementTsang deleted the skip_unknown_battery_duration_draw branch January 15, 2023 17:06
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