Skip to content

resetting the elapsed time also resets ETA#538

Merged
djc merged 1 commit intoconsole-rs:mainfrom
afontenot:reset-eta
May 9, 2023
Merged

resetting the elapsed time also resets ETA#538
djc merged 1 commit intoconsole-rs:mainfrom
afontenot:reset-eta

Conversation

@afontenot
Copy link
Copy Markdown
Contributor

It makes sense to reset the ETA without resetting the time elapsed back to zero, but when setting the time elapsed back to zero, the ETA should also be reset as this should make the progress bar behave as if it had just been activated (in a partially complete state).

Fixes #536.

Comment thread src/state.rs Outdated
Copy link
Copy Markdown
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Thanks!

@djc djc merged commit 6d31845 into console-rs:main May 9, 2023
@djc
Copy link
Copy Markdown
Member

djc commented May 9, 2023

@chris-laplante further feedback welcome!

@djc djc mentioned this pull request May 24, 2023
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.

Resetting the time elapsed does not also reset the ETA

2 participants