Compare commits

...

2 commits

Author SHA1 Message Date
Nickiel12
1fb0a279c8 fixed issue causing gui_recv to exit early 2024-05-22 19:29:09 -06:00
Nickiel12
9487a9439c wip changes 2024-05-22 19:27:35 -06:00

View file

@ -235,8 +235,8 @@ pub fn build_ui(app: &Application, config: Arc<RwLock<AppConfig>>, runtime: Hand
);
glib::spawn_future_local(
glib::clone!(@weak axis_label, @weak conn_status_label, @weak control_panel, @strong gui_recv, @weak drawable => async move {
while let Ok(d) = gui_recv.recv().await {
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 {
GuiUpdate::MoveEvent(msg) => {
@ -274,6 +274,7 @@ pub fn build_ui(app: &Application, config: Arc<RwLock<AppConfig>>, runtime: Hand
}
}
}
info!("Closing update loop");
}),
);