From cfcdfc5dd9971fd227f5d3c5b063ce7740125f58 Mon Sep 17 00:00:00 2001 From: hacknus Date: Tue, 29 Oct 2024 13:43:47 +0100 Subject: [PATCH] remove print --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 376117b..c47e9db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -198,8 +198,7 @@ fn main() { let repaint_signal = _cc.egui_ctx.clone(); thread::spawn(move || loop { - if let Ok(_) = sync_rx.recv() { - println!("requested repaint!"); + if sync_rx.recv().is_ok() { repaint_signal.request_repaint(); } });