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

[Enhancement] Move single instancing logic to Main() function #18

Closed
myfix16 opened this issue Mar 4, 2023 · 1 comment · Fixed by #20
Closed

[Enhancement] Move single instancing logic to Main() function #18

myfix16 opened this issue Mar 4, 2023 · 1 comment · Fixed by #20
Assignees
Labels
enhancement New feature or request

Comments

@myfix16
Copy link
Owner

myfix16 commented Mar 4, 2023

We need to check for redirection as early as possible before creating any windows. So, we should create our own Program.cs instead of using the xaml generated one.

@myfix16
Copy link
Owner Author

myfix16 commented Mar 4, 2023

Note: According to this issue, the activated app must call AppNotificationManager.Default().Register() before calling GetActivatedEventArgs or else the app will crash.

@myfix16 myfix16 self-assigned this Mar 4, 2023
@myfix16 myfix16 added the enhancement New feature or request label Mar 4, 2023
@myfix16 myfix16 changed the title Move single instancing logic to Main() function [Enhancement] Move single instancing logic to Main() function Mar 4, 2023
@myfix16 myfix16 added this to the v1.3.3 Release milestone Mar 4, 2023
@myfix16 myfix16 linked a pull request Mar 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant