Skip to content

Commit

Permalink
Better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AufarZakiev committed Jan 27, 2024
1 parent 7017947 commit cf84309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<InnerResponse<()>> {
menu::context_menu(&self, add_contents)
}
}

Expand Down

0 comments on commit cf84309

Please sign in to comment.