From 1fb0a279c8dc8a91e2000c11e240874cc5914926 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Wed, 22 May 2024 19:29:09 -0600 Subject: [PATCH] fixed issue causing gui_recv to exit early --- src/ui/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 0df8e77..510504b 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -234,12 +234,8 @@ pub fn build_ui(app: &Application, config: Arc>, runtime: Hand }), ); - println!("We are here!"); - glib::spawn_future_local( - glib::clone!(@weak axis_label, @weak conn_status_label, @weak control_panel, @weak drawable => async move { - println!("We are also here!"); - info!("Hello world!"); + glib::clone!(@weak axis_label, @weak conn_status_label, @weak drawable => async move { while let Ok(d) = gui_recv.recv().await { drawable.queue_draw(); match d {