Skip to content

Conversation

taooceros
Copy link
Member

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.

@taooceros taooceros self-assigned this Dec 16, 2021
@taooceros taooceros requested a review from jjw24 December 16, 2021 02:38
@taooceros taooceros added the bug Something isn't working label Dec 16, 2021
@jjw24
Copy link
Member

jjw24 commented Dec 16, 2021

@taooceros were you able to replicate this issue?

@jjw24 jjw24 added the review in progress Indicates that a review is in progress for this PR label Dec 16, 2021
@taooceros
Copy link
Member Author

@taooceros were you able to replicate this issue?

Sometimes

@jjw24
Copy link
Member

jjw24 commented Dec 19, 2021

there is an IsLoaded method attached to the mainwindow class if you want to actually check that the window is loaded.

Copy link
Member

@jjw24 jjw24 left a comment

Choose a reason for hiding this comment

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

see comments

@jjw24 jjw24 added this to the 1.9.1 milestone Dec 19, 2021
@taooceros
Copy link
Member Author

there is an IsLoaded method attached to the mainwindow class if you want to actually check that the window is loaded.

I will take al look

Move animation and sound to MainWindow instead of MainViewModel
@taooceros
Copy link
Member Author

This way should solve the issue. The animation is called inside MainWindow, so no more potential of null reference.

@jjw24 jjw24 force-pushed the FixNullReferenceError branch from 174793a to 58317b7 Compare December 20, 2021 09:58
@jjw24 jjw24 removed the review in progress Indicates that a review is in progress for this PR label Dec 20, 2021
@jjw24 jjw24 changed the title Delay Hotkey register & use safe way calling mainwindow animation fix calling mainwindow animation after loaded Dec 20, 2021
@jjw24 jjw24 enabled auto-merge December 20, 2021 10:02
@jjw24 jjw24 merged commit 83a357a into dev Dec 20, 2021
@jjw24 jjw24 deleted the FixNullReferenceError branch December 20, 2021 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Flow Launcher got an error

2 participants