feat(tauri): derive Clone for tauri::ExitRequestApi (#12710)

This commit is contained in:
Sean Wang
2025-03-15 21:26:22 +08:00
committed by GitHub
parent dc90cd3919
commit c108024257
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
tauri: 'minor:feat'
---
derive `Clone` for `tauri::ExitRequestApi`.

View File

@@ -72,7 +72,7 @@ pub type ChannelInterceptor<R> =
pub const RESTART_EXIT_CODE: i32 = i32::MAX;
/// Api exposed on the `ExitRequested` event.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct ExitRequestApi(Sender<ExitRequestedEventAction>);
impl ExitRequestApi {