oh my god this was so painful to debug
Literally, I just didn't know what something was so I put unreachable??? Hello???
This commit is contained in:
parent
7e55ad033e
commit
45f81d2409
|
|
@ -419,7 +419,7 @@ fn add_plate_sub(
|
|||
row: c_row,
|
||||
col: c_column,
|
||||
},
|
||||
None,
|
||||
Some(plate_type),
|
||||
)
|
||||
}) {
|
||||
painter.circle_stroke(center, radius * 0.80, *STROKE_CURRENT);
|
||||
|
|
|
|||
|
|
@ -117,8 +117,7 @@ impl CurrentTransferStateInterior {
|
|||
let volume: f32 = match transfer.volume {
|
||||
plate_tool_lib::transfer_volume::TransferVolume::Single(x) => x,
|
||||
plate_tool_lib::transfer_volume::TransferVolume::WellMap(_) => {
|
||||
log::warn!("COOL BUG: I genuinely don't know when this variant is used and honestly assume that it just never is constructed! Anyway, here's main state:\n{:?}", ms);
|
||||
unreachable!("It better not!");
|
||||
f32::NAN
|
||||
}
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
|
@ -213,16 +212,18 @@ pub fn transfer_menu(
|
|||
);
|
||||
});
|
||||
|
||||
ui.horizontal(|ui| {
|
||||
ui.add(egui::Label::new("Volume"));
|
||||
extra_widgets::drag_value_with_scroll(
|
||||
ui,
|
||||
&mut state.volume,
|
||||
0.0..=f32::INFINITY,
|
||||
0.5,
|
||||
1.0,
|
||||
);
|
||||
});
|
||||
if state.volume.is_finite() {
|
||||
ui.horizontal(|ui| {
|
||||
ui.add(egui::Label::new("Volume"));
|
||||
extra_widgets::drag_value_with_scroll(
|
||||
ui,
|
||||
&mut state.volume,
|
||||
0.0..=f32::INFINITY,
|
||||
0.5,
|
||||
1.0,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
ui.horizontal(|ui| {
|
||||
ui.add(egui::Label::new("Source Region"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue