Add "Copy link" to context menu
This commit is contained in:
parent
a9c9d5684d
commit
a6522c4816
4 changed files with 32 additions and 1 deletions
|
|
@ -117,7 +117,11 @@ pub fn context_menu<'a>(
|
|||
0,
|
||||
Element::from(menu_item(fl!("open-link"), Action::LaunchUrlByMenu)),
|
||||
);
|
||||
rows.insert(1, Element::from(divider::horizontal::light()));
|
||||
rows.insert(
|
||||
1,
|
||||
Element::from(menu_item(fl!("copy-link"), Action::CopyUrlByMenu)),
|
||||
);
|
||||
rows.insert(2, Element::from(divider::horizontal::light()));
|
||||
}
|
||||
let content = Column::with_children(rows);
|
||||
widget::container(content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue