Reduce churn in window behavior

This commit is contained in:
Jonathan Kelley committed 2024-03-18 22:38:33 -07:00
1 parent d442dac168
commit 4bb807a3ce
4 files changed
+11 -11

No files matched your search

+2 -2
View File
@@ -8,12 +8,12 @@
use dioxus::desktop::tao::event::Event as WryEvent;
use dioxus::desktop::tao::event::WindowEvent;
use dioxus::desktop::use_wry_event_handler;
use dioxus::desktop::{Config, WindowCloseBehavior};
use dioxus::desktop::{Config, WindowCloseBehaviour};
use dioxus::prelude::*;
fn main() {
LaunchBuilder::desktop()
.with_cfg(Config::new().with_close_behaviour(WindowCloseBehavior::CloseWindow))
.with_cfg(Config::new().with_close_behaviour(WindowCloseBehaviour::CloseWindow))
.launch(app)
}