File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " tauri " : " patch"
3+ ---
4+
5+ Cleanup sidecar and tray icons when calling ` app.exit() ` from JS.
Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ impl Cmd {
3737 }
3838
3939 #[ module_command_handler( process_exit) ]
40- fn exit < R : Runtime > ( _context : InvokeContext < R > , exit_code : i32 ) -> super :: Result < ( ) > {
40+ fn exit < R : Runtime > ( context : InvokeContext < R > , exit_code : i32 ) -> super :: Result < ( ) > {
4141 // would be great if we can have a handler inside tauri
4242 // who close all window and emit an event that user can catch
4343 // if they want to process something before closing the app
44- std:: process:: exit ( exit_code) ;
44+ context. window . app_handle . exit ( exit_code) ;
45+ Ok ( ( ) )
4546 }
4647}
4748
You can’t perform that action at this time.
0 commit comments