DioxusLabs / DioxusLabs/dioxus

Add way to trigger graceful shutdown for Dioxus Desktop apps

Open
#3,960 0 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.