chore: remove doctest
This commit is contained in:
1 parent
e84feb292b
commit
730a27b397
1 file changed
-10
@@ -337,16 +337,6 @@ pub fn clear_button() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Register a Tauri event handler that cleanly disconnects presence when the
|
|
||||||
/// application exits. Call this once in your main.rs `tauri::Builder` run callback:
|
|
||||||
///
|
|
||||||
/// ```rust
|
|
||||||
/// .build(tauri::generate_context!())
|
|
||||||
/// .expect("error building app")
|
|
||||||
/// .run(|app, event| {
|
|
||||||
/// presence::handle_run_event(app, &event);
|
|
||||||
/// });
|
|
||||||
/// ```
|
|
||||||
pub fn handle_run_event(_app: &AppHandle, event: &RunEvent) {
|
pub fn handle_run_event(_app: &AppHandle, event: &RunEvent) {
|
||||||
if let RunEvent::ExitRequested { .. } | RunEvent::Exit = event {
|
if let RunEvent::ExitRequested { .. } | RunEvent::Exit = event {
|
||||||
tauri::async_runtime::block_on(async {
|
tauri::async_runtime::block_on(async {
|
||||||
|
|||||||
Reference in new issue
Block a user