From 79d79540557a77a3c961fa8d00a23cfc0a1edfa2 Mon Sep 17 00:00:00 2001 From: lucasmerlin Date: Sun, 25 Jan 2026 22:13:40 +0100 Subject: [PATCH] Fix response --- crates/egui/src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index d0b5b985e..6a1fb7ba4 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -2981,13 +2981,13 @@ impl Ui { &mut self, transform: emath::TSTransform, add_contents: impl FnOnce(&mut Self) -> R, - ) -> InnerResponse { + ) -> R { let start_idx = self.ctx().graphics(|gx| { gx.get(self.layer_id()) .map_or(crate::layers::ShapeIdx(0), |l| l.next_idx()) }); - add_contents(self); + let r = add_contents(self); self.ctx().graphics_mut(|g| { let list = g.entry(self.layer_id());