Skip to content

Use an actual percentage for progress bar when flashing#11186

Merged
riknoll merged 2 commits intomicrosoft:masterfrom
microbit-robert:progress-percent
Mar 11, 2026
Merged

Use an actual percentage for progress bar when flashing#11186
riknoll merged 2 commits intomicrosoft:masterfrom
microbit-robert:progress-percent

Conversation

@microbit-robert
Copy link
Contributor

@microbit-robert microbit-robert commented Mar 11, 2026

NVDA uses sound to communicate progress, but this does not work with fractional values (0-1). I've tried to make the progress bar more consistent in always using a percentage from 0-100.

The value that is passed to different instances of the progress element is inconsistent. In some places a percentage is passed in. In other cases, a fractional value is passed in. Both appear to have been done with purpose.

loadedPercentage is actually a fractional value here (Is this always the case? What about other hardware?) so the use of percent in the name here and on the outside is confusing, but I've not attempted to change that in this PR.

NVDA uses sound to communicate progress, but this does not work
with fractional values.
@riknoll riknoll enabled auto-merge (squash) March 11, 2026 18:22
@riknoll riknoll merged commit 594c1c8 into microsoft:master Mar 11, 2026
12 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.

2 participants