Window.Current is null in Custom Protocol Activation OnLaunch()
#14005
Replies: 2 comments 6 replies
-
|
As this is a WinAppSDK-only behavior, this would be a good question to ask on the Microsoft WinUI repository: https://github.com/microsoft/microsoft-ui-xaml/discussions |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
Hey @BertrandDeSaintBezier , given that #457 above was closed, can we mark this one as 'answered'? Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just created an empty project using the lastest Uno wizard, and have noticed that some things have changed. It appears that the current window is always set to
nullwhen launched using custom protocol activation, and this produces a crash when calling the SetWindowIcon function. This used to work perfectly fine on older versions, where this new method simply wasn't being called :New AppHead class :
Older AppHead class :
I tried simply commenting out the new method, but as you can imagine that just created other problems :
Beta Was this translation helpful? Give feedback.
All reactions