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

Fix progressbar not showing label until first refresh #5432

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

Jacalz
Copy link
Member

@Jacalz Jacalz commented Jan 19, 2025

Description:

This fixes a whole bunch of issues that I noticed with the progressbar. It had a lot of incorrect assumptions about the renderer being set up in a specific way and relied on a manual refresh happening after the object had been created. With these changes, an initial progress bar from struct looks like it should and methods like .Refresh() and .Layout() does what is expected from them (no more and no less).

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@Jacalz Jacalz marked this pull request as draft January 19, 2025 15:53
@Jacalz Jacalz marked this pull request as ready for review January 19, 2025 16:14
@coveralls
Copy link

Coverage Status

coverage: 60.006% (-0.01%) from 60.02%
when pulling e775b8a on Jacalz:fix-progressbar-before-refresh
into 9246854 on fyne-io:release/v2.5.x.

Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Nice catch thanks

@Jacalz Jacalz merged commit 40be72d into fyne-io:release/v2.5.x Jan 20, 2025
12 checks passed
@Jacalz Jacalz deleted the fix-progressbar-before-refresh branch January 20, 2025 04:21
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.

3 participants