DioxusLabs / DioxusLabs/dioxus
Add way to trigger graceful shutdown for Dioxus Desktop apps
Open
desktop
enhancement
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
For Dioxus Desktop, when using a mode other than `WindowCloseBehaviour::LastWindowExitsApp`, currently there's no way to quit the app gracefully by stopping the event loop, having to resort to non-graceful ways like `std::process::exit(0)`.
It looks like graceful shutdown is already supported internally by the existing`UserWindowEvent::Shutdown`, but there's no public way to emit that event, as `UserWindowEvent` itself is not even public. So if this won't be made public, an alternative way should be provided.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.