VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Tests: the dropdown keyboard test clears the texture updates it doesn't apply (#2824)
bflatastic1e3ab306d4f9
diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rsindex db80bce74..13d64a816 100644--- a/crates/ui-egui/src/widgets.rs+++ b/crates/ui-egui/src/widgets.rs@@ -2613,11 +2613,13 @@ mod combo_keyboard_tests {}fn frame(ctx: &egui::Context, events: Vec<egui::Event>, picked: &mut Option<usize>) {- let _ = ctx.run_ui(egui::RawInput { events, ..Default::default() }, |ui| {+ let mut out = ctx.run_ui(egui::RawInput { events, ..Default::default() }, |ui| {if let Some(i) = dropdown(ui, "combo-test", "One", &["One", "Two", "Three"], 200.0) {*picked = Some(i);}});+ // No renderer takes the font atlas updates in a test; dropping them unapplied panics.+ out.textures_delta.clear();}/// An option picked with the keyboard closes the list (it used to stay open and keep the keys).