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

refactor(core): exit() and restart() triggers ExitRequested and Exit #8708

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

lucasfernog
Copy link
Member

This changes the AppHandle::exit and AppHandle::restart implementations to actually trigger RunEvent::ExitRequested and RunEvent::Exit instead of forcing exit with std::process::exit

@lucasfernog lucasfernog requested a review from a team as a code owner January 30, 2024 13:59
Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

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

Can we also do the same for Window::close? so custom titlebars can trigger CloseRequested ?

@lucasfernog
Copy link
Member Author

Gonna try that

@lucasfernog lucasfernog merged commit 00e1567 into dev Jan 30, 2024
20 checks passed
@lucasfernog lucasfernog deleted the refactor/app-exit branch January 30, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants