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

Clamped progress bars to solve problems with -ve numbers #274

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

whiskyplausible
Copy link
Contributor

@whiskyplausible whiskyplausible commented Oct 22, 2023

Resolves #273

Negative numbers were sometimes appearing in progress.num_seconds() which would cause a panic, as the ui elements would only accept positive ratios. Clamped the numbers from 0.0 to 1.0 to prevent this happening. Seems to have solved the panics, but no idea where the negative numbers are coming from.

@aome510 aome510 merged commit 3b2a366 into aome510:master Oct 23, 2023
3 checks passed
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.

Random hangs on Raspberry Pi
2 participants