From 2a25afe5e110291d0dcab0540421d094415e3283 Mon Sep 17 00:00:00 2001 From: Sean Boult <996134+Hacksore@users.noreply.github.com> Date: Sun, 5 Nov 2023 15:25:03 -0600 Subject: [PATCH] Remove print --- src-tauri/src/main.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index ad7caeed..73130717 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -21,19 +21,16 @@ struct Clickthrough(AtomicBool); #[tauri::command] fn toggle_clickthrough(window: Window, clickthrough: State<'_, Clickthrough>) { - - let clickthrough_value = !clickthrough - .0 - .load(std::sync::atomic::Ordering::Relaxed); - - println!("Setting clickthrough to {}", clickthrough_value); + let clickthrough_value = !clickthrough.0.load(std::sync::atomic::Ordering::Relaxed); clickthrough .0 .store(clickthrough_value, std::sync::atomic::Ordering::Relaxed); - + // let the client know - window.emit("toggle_clickthrough", clickthrough_value).unwrap(); + window + .emit("toggle_clickthrough", clickthrough_value) + .unwrap(); #[cfg(target_os = "macos")] window.with_webview(move |webview| {