Change context menu based on selection

This commit is contained in:
Jeremy Soller 2024-01-10 10:15:16 -07:00
parent 07c91042db
commit 716991a302
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 34 additions and 35 deletions

View file

@ -655,8 +655,7 @@ impl Application for App {
Message::TabContextMenu(entity, point_opt)
});
}
let mut popover =
widget::popover(mouse_area, menu::context_menu(entity, &tab.location));
let mut popover = widget::popover(mouse_area, menu::context_menu(entity, &tab));
match tab.context_menu {
Some(point) => {
let rounded = Point::new(point.x.round(), point.y.round());