Skip to content

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

Closed

Description

@lt3stus3el

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()?

Activity

  1. ctongfei commented on Sep 10, 2022

    @ctongfei
    Owner

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

  2. self-assigned this
    on Sep 10, 2022
  3. added this to the 0.9.4 milestone on Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions