Skip to content

Commit

Permalink
remove default macos handler
Browse files Browse the repository at this point in the history
  • Loading branch information
pashokitsme committed Nov 1, 2023
1 parent 8110c15 commit 3a08974
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/tauri-runtime-wry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,6 @@ fn create_webview<T: UserEvent, F: Fn(RawWindow) + Send + 'static>(
label,
ipc_handler,
url,
download_started_handler,
..
} = pending;

Expand Down Expand Up @@ -2727,10 +2726,7 @@ fn create_webview<T: UserEvent, F: Fn(RawWindow) + Send + 'static>(
});
}

#[cfg(target_os = "macos")]
let download_started = download_started_handler.or_else(|| Some(Box::from(|_, _: &mut _| true)));

if let Some(download_started) = download_started {
if let Some(download_started) = pending.download_started_handler {
webview_builder = webview_builder.with_download_started_handler(download_started)
}

Expand Down

0 comments on commit 3a08974

Please sign in to comment.