info on no connection
This commit is contained in:
parent
2d4ee8d8a8
commit
02f0eb675d
1 changed files with 23 additions and 0 deletions
|
@ -653,11 +653,34 @@ fn update(_app: &App, model: &mut Model, update: Update) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui.heading("Connected DACs");
|
||||||
|
|
||||||
|
if laser_streams.len() < 1 {
|
||||||
|
ui.label("no streams");
|
||||||
|
}
|
||||||
|
|
||||||
for stream in laser_streams {
|
for stream in laser_streams {
|
||||||
let dac = stream
|
let dac = stream
|
||||||
.dac()
|
.dac()
|
||||||
.expect("`dac` returned `None` even though one was specified during stream creation");
|
.expect("`dac` returned `None` even though one was specified during stream creation");
|
||||||
ui.add(egui::Label::new(format!("{:?}", dac.id())));
|
ui.add(egui::Label::new(format!("{:?}", dac.id())));
|
||||||
|
|
||||||
|
//if egui::ComboBox::from_label("Homography")
|
||||||
|
// .selected_text(format!("{radio:?}"))
|
||||||
|
// .show_ui(ui, |ui| {
|
||||||
|
// ui.selectable_value(radio, Enum::First, "First");
|
||||||
|
// ui.selectable_value(radio, Enum::Second, "Second");
|
||||||
|
// ui.selectable_value(radio, Enum::Third, "Third");
|
||||||
|
// })
|
||||||
|
// .changed() {
|
||||||
|
// let sending = laser_stream.send(move |laser| {
|
||||||
|
// let laser_lines: RenderableLines = lines_for_laser;
|
||||||
|
// laser.current_lines = laser_lines;
|
||||||
|
// });
|
||||||
|
// if let Err(e) = sending {
|
||||||
|
// println!("Error sending to laser! {e:?}");
|
||||||
|
// }
|
||||||
|
// };
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue