fix: use cfg window close behavior (#4928)
This commit is contained in:
1 parent
b252dc0620
commit
50a7757259
1 file changed
+1
-2
@@ -1,7 +1,6 @@
|
||||
use crate::file_upload::{DesktopFileData, DesktopFileDragEvent};
|
||||
use crate::menubar::DioxusMenu;
|
||||
use crate::PendingDesktopContext;
|
||||
use crate::WindowCloseBehaviour;
|
||||
use crate::{
|
||||
app::SharedContext, assets::AssetHandlerRegistry, edits::WryQueue,
|
||||
file_upload::NativeFileHover, ipc::UserWindowEvent, protocol, waker::tao_waker, Config,
|
||||
@@ -475,7 +474,7 @@ impl WebviewInstance {
|
||||
shared.clone(),
|
||||
asset_handlers,
|
||||
file_hover,
|
||||
WindowCloseBehaviour::WindowCloses,
|
||||
cfg.window_close_behavior,
|
||||
));
|
||||
|
||||
// Provide the desktop context to the virtual dom and edit handler
|
||||
|
||||
Reference in new issue
Block a user