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

Call Library.load() before calling native getCurrentSystemTheme() #866

Merged
merged 1 commit into from Feb 7, 2024

Conversation

m-sasha
Copy link
Contributor

@m-sasha m-sasha commented Feb 7, 2024

@m-sasha m-sasha merged commit a95eb8c into master Feb 7, 2024
5 checks passed
@m-sasha m-sasha deleted the m-sasha/load-library-in-currentSystemTheme branch February 7, 2024 11:31
1 -> SystemTheme.DARK
else -> SystemTheme.UNKNOWN
get() {
Library.load()
Copy link
Member

Choose a reason for hiding this comment

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

It shouldn't be called on each call

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wouldn't say "shouldn't" (Library.load protects against being called multiple times), but yes, it's slightly faster not to.

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.

Using painterResource(:DrawableResource) outside desktop Window can produce UnsatisfiedLinkError
4 participants