From 84abbb427c020e6245fc56c422fd8ccf50d4cf6c Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 18 Nov 2023 20:11:45 +0100 Subject: [PATCH] bux fix --- src-tauri/src/main.rs | 2 +- src/components/TraceGrid.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 9b482c9..7739246 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -66,7 +66,7 @@ fn main() { // setup tauri tauri::Builder::default() .manage(TraceState::new()) - .invoke_handler(tauri::generate_handler![emergency, launch_pod, land_pod, connect_pod]) + .invoke_handler(tauri::generate_handler![emergency, launch_pod, land_pod, connect_pod, listen_to_trace, unlisten_to_trace]) .setup(|app| { println!("Hello, Tauri!"); random_integer(app.handle()); diff --git a/src/components/TraceGrid.tsx b/src/components/TraceGrid.tsx index f0aa615..bc7a555 100644 --- a/src/components/TraceGrid.tsx +++ b/src/components/TraceGrid.tsx @@ -93,7 +93,7 @@ function TraceGrid({}: TraceGridProps) { if (subscriptionActive) { invoke("unlisten_to_trace"); } else { - invoke("listen_to_trace"); + invoke("listen_to_trace").then(e => console.log(e)); } };