Change context menu based on selection
This commit is contained in:
parent
07c91042db
commit
716991a302
2 changed files with 34 additions and 35 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue