Add "Copy link" to context menu

This commit is contained in:
Chris Glass 2026-02-15 10:23:49 +01:00
parent a9c9d5684d
commit a6522c4816
4 changed files with 32 additions and 1 deletions

View file

@ -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)