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

Use the right cache scope for overridden font resources #4944

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

andydotxyz
Copy link
Member

Fixes #4937

Checklist:

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

@coveralls
Copy link

Coverage Status

coverage: 65.64% (-0.03%) from 65.668%
when pulling 587fd87 on andydotxyz:fix/4937
into b26152d on fyne-io:develop.

@andydotxyz andydotxyz requested a review from toaster June 16, 2024 20:25
Comment on lines +114 to +117
scope := ""
if o != nil { // for overridden themes get the cache key right
scope = cache.WidgetScopeID(o)
}
Copy link
Member

Choose a reason for hiding this comment

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

FYI: Moving the nil check into WidgetScopeID would simplify the callers.

@andydotxyz andydotxyz merged commit 4d39a3d into fyne-io:develop Jun 17, 2024
12 checks passed
@andydotxyz andydotxyz deleted the fix/4937 branch June 17, 2024 08:27
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