Skip to content

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

Merged
lucasfernog merged 3 commits into
devfrom
refactor/app-exit
Jan 30, 2024
Merged

refactor(core): exit() and restart() triggers ExitRequested and Exit#8708
lucasfernog merged 3 commits into
devfrom
refactor/app-exit

Conversation

@lucasfernog

Copy link
Copy Markdown
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

@amrbashir amrbashir left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

Gonna try that

@lucasfernog lucasfernog merged commit 00e1567 into dev Jan 30, 2024
@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