diff --git a/.changes/clone-ExitRequestApi.md b/.changes/clone-ExitRequestApi.md new file mode 100644 index 000000000..e20e767d5 --- /dev/null +++ b/.changes/clone-ExitRequestApi.md @@ -0,0 +1,5 @@ +--- +tauri: 'minor:feat' +--- + +derive `Clone` for `tauri::ExitRequestApi`. diff --git a/crates/tauri/src/app.rs b/crates/tauri/src/app.rs index 9171a999f..5de9a294a 100644 --- a/crates/tauri/src/app.rs +++ b/crates/tauri/src/app.rs @@ -72,7 +72,7 @@ pub type ChannelInterceptor = pub const RESTART_EXIT_CODE: i32 = i32::MAX; /// Api exposed on the `ExitRequested` event. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct ExitRequestApi(Sender); impl ExitRequestApi {