DioxusLabs / DioxusLabs/dioxus
Close All Windows WindowCloseBehaviour
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
It would be great to have a WindowCloseBehaviour, that closes all Windows currently open, like any Popup opened.
When for example the window which has the CloseAllWindows behaviour set (this could be a main window) closes all the opened Popups with it (for example some Settings Popup or something).
## Implement Suggestion
It would be great if this could be done in the WindowCloseBehaviour as another close behaviour for a window.
It could look at the end like this:
```rust
use dioxus::desktop::WindowCloseBehaviour;
let config = dioxus::desktop::Config::new().with_close_behaviour(WindowCloseBehaviour::CloseAllWindows);
// Launch the app with the custom menu
LaunchBuilder::new().with_cfg(config).launch(App)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.