Skip to content

Commit

Permalink
Remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 5, 2023
1 parent 44e3007 commit 2a25afe
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 2a25afe

Please sign in to comment.