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

Know if progress bar have max value or it is set to infinity? #140

Closed
lt3stus3el opened this issue Aug 6, 2022 · 1 comment
Closed

Know if progress bar have max value or it is set to infinity? #140

lt3stus3el opened this issue Aug 6, 2022 · 1 comment
Assignees
Milestone

Comments

@lt3stus3el
Copy link

Hi. I created a progress bar with max of -1. Everything is OK, but when I want check if progress bar has infinity max (or -1) it returns current value (not -1) of the progress bar.

I saw that in ProgressState there is a constant named indefinite and it is set when the initmax is -1:

if (initialMax < 0) indefinite = true;

I want to ask if it is possible to have access to ProgressState() or indefinite from ProgressBar object? Something like: boolean isIndefinite()?

@ctongfei
Copy link
Owner

@lt3stus3el thanks. I'll add this method to the ProgressBar object in the next version.

@ctongfei ctongfei self-assigned this Sep 10, 2022
@ctongfei ctongfei added this to the 0.9.4 milestone Sep 10, 2022
@ctongfei ctongfei mentioned this issue Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants