From cf843094fe606706cb0abbfb395ea12103725f73 Mon Sep 17 00:00:00 2001 From: Aufar Zakiev Date: Sat, 27 Jan 2024 15:50:51 +0300 Subject: [PATCH] Better fix --- crates/egui/src/response.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/response.rs b/crates/egui/src/response.rs index d93cf510088..a689fbb4d7d 100644 --- a/crates/egui/src/response.rs +++ b/crates/egui/src/response.rs @@ -718,8 +718,8 @@ impl Response { /// ``` /// /// See also: [`Ui::menu_button`] and [`Ui::close_menu`]. - pub fn context_menu(&self, add_contents: impl FnOnce(&mut Ui)) { - menu::context_menu(&self, add_contents); + pub fn context_menu(&self, add_contents: impl FnOnce(&mut Ui)) -> Option> { + menu::context_menu(&self, add_contents) } }