-
-
Notifications
You must be signed in to change notification settings - Fork 447
fix calling mainwindow animation after loaded #908
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
Conversation
@taooceros were you able to replicate this issue? |
Sometimes |
there is an IsLoaded method attached to the mainwindow class if you want to actually check that the window is loaded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
Co-authored-by: Jeremy Wu <[email protected]>
I will take al look |
Move animation and sound to MainWindow instead of MainViewModel
This way should solve the issue. The animation is called inside MainWindow, so no more potential of null reference. |
174793a
to
58317b7
Compare
fix #902
It's a fix that prevent the error. It looks like it's because mainwindow takes too long to be created and assigned, which results in the issue. We need to investigate that in the future.