fixed issue causing gui_recv to exit early

This commit is contained in:
Nickiel12 2024-05-22 19:29:09 -06:00
parent 9487a9439c
commit 1fb0a279c8

View file

@ -234,12 +234,8 @@ pub fn build_ui(app: &Application, config: Arc<RwLock<AppConfig>>, 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 {