Compare commits
2 commits
76904e33b2
...
1fb0a279c8
Author | SHA1 | Date | |
---|---|---|---|
|
1fb0a279c8 | ||
|
9487a9439c |
1 changed files with 4 additions and 3 deletions
|
@ -233,10 +233,10 @@ pub fn build_ui(app: &Application, config: Arc<RwLock<AppConfig>>, runtime: Hand
|
|||
glib::ControlFlow::Continue
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
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");
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue