Im having a deathlock on this one seems passing tauri stuff around methods keep biting me.
I would like to update title of tray with a temperature and i do this from the react frontend with a tauri invoke. thus created a command for it.
fn update_title(app_handle: AppHandle, temperature: f64) -> Result<(), String> {
#[cfg(debug_assertions)]
println!("update_title");
println!("temp: {}", temperature);
let title = temperature;
// Assuming `tray_handle_arc` is a global or accessible otherwise
// if let Err(err) = tray_handle_arc.set_title(&title) {
// eprintln!("Error updating tray title: {:?}", err);
// return Err(format!("Error updating tray title: {:?}", err));
// }
Ok(())
}```