-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Prevent closing app while doing critical process #681
Conversation
Need consultation about this @neon-nyan is it safe to return Task for the Close method instead, making it detached? |
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
IMO, it should be safe to use Task for the _ = CloseApp(); |
dune tank! |
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.
Just one review for the overall changes. Others are looking good to me
Ready to merge! |
|
Main Goal
Show dialog confirming user before exiting app while critical process is happening
![image](https://private-user-images.githubusercontent.com/28079733/410291691-4d99705f-d4c6-4942-8ccd-17f8db3c7bc6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4Mzk4ODcsIm5iZiI6MTczODgzOTU4NywicGF0aCI6Ii8yODA3OTczMy80MTAyOTE2OTEtNGQ5OTcwNWYtZDRjNi00OTQyLThjY2QtMTdmOGRiM2M3YmM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEwNTk0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4ZDcwMDQ5YWQ4ZDM4MTE1YzBmYTE0Y2UwMmM3NDNhYWFmYTU5OWQ4MGFjODhmODkyYWI5YjdlODFjMWU5NmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iyKTqdJpne8H0UsO5ET5g05_r9Zz3CbXACVjoGWlNQU)
Close #671
Currently implemented in:
PR Status :
Sidenote:
When closing app while some UI progress is happening, there is a chance that it throws bunch of errors on XAML thread before it exit
Templates
Changelog Prefixes