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

fix: time_indicator disable option #76

Merged
merged 1 commit into from
Mar 9, 2023
Merged

Conversation

ttytm
Copy link
Owner

@ttytm ttytm commented Mar 9, 2023

No description provided.

As incremental refactor of the related block:
- the condition that determines if it's the hour of a day is flipped
to opt-into the last hour, which should be somewhat easier to follow.
- variable declarations are sorted.
- comments are updated.
@github-actions
Copy link

github-actions bot commented Mar 9, 2023

Test Results

  3 files  ±0    3 suites  ±0   9s ⏱️ +6s
  9 tests ±0    9 ✔️ ±0  0 💤 ±0  0 ±0 
27 runs  ±0  27 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 706d80d. ± Comparison against base commit e62b440.

@ttytm ttytm merged commit f967427 into main Mar 9, 2023
.iter()
.map(|x| x.ceil() as u8)
.collect::<Vec<u8>>(),
};
};

let time_indicator_col = match day_index {
0 => Some(
let time_indicator_col = if day_index == 0 && params.config.gui.graph.time_indicator {
Copy link
Owner Author

Choose a reason for hiding this comment

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

It's mainly this line.

Rest are incremental refactors of the related block:

  • the condition that determines if it's the hour of a day is flipped
    to opt-into the last hour, which should be somewhat easier to follow.
  • variable declarations are sorted.
  • comments are updated.

@ttytm ttytm deleted the fix-disable-time-indicator branch March 10, 2023 01:43
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.

1 participant