fix(windows): Use app.exit to clean up the tray (#3)

pull/72/head
Fabian-Lars 3 years ago committed by GitHub
parent 8baf90d881
commit 4d903f3533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,7 +64,7 @@ pub fn init<R: Runtime>(f: Box<SingleInstanceCallback<R>>) -> TauriPlugin<R> {
lpData: bytes.as_ptr() as _,
};
SendMessageW(hwnd, WM_COPYDATA, 0, &cds as *const _ as _);
std::process::exit(0);
app.exit(0);
}
}
} else {

Loading…
Cancel
Save