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

Allow for a slightly delayed theme registration #200

Merged
merged 4 commits into from
Aug 23, 2023
Merged

Conversation

mattleibow
Copy link
Contributor

Description of Change

In some cases, the view can be constructed during the app creating, and as a result the app is not actually ready yet. This occurs when passing the page as a constructor argument - the page is created before the app, and thus the view is created before the app and when it tries to register with the app it skips.

This PR is going to wait until there is a window and try again. At that point there should be an app and a window. There is the case where the app may get a window before the app - if the window is a constructor parameter - but this is not really useful in maui as apps may have multiple windows.

Bugs Fixed

@mattleibow mattleibow merged commit 58779a0 into main Aug 23, 2023
3 checks passed
@mattleibow mattleibow deleted the dev/fix-147 branch August 23, 2023 00:00
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.

Lottie animation not visible on Page from ServiceProvider
1 participant