add pin action to context menu

This commit is contained in:
yggverse 2024-11-04 23:04:57 +02:00
parent 2aed6691b9
commit 998f51e0fc
4 changed files with 30 additions and 18 deletions

View file

@ -147,8 +147,8 @@ impl Browser {
action_page_home.connect_activate({
let window = window.clone();
move |_, _| {
window.tab_page_navigation_home();
move |this, _| {
window.tab_page_navigation_home(page_position_from_action_state(this));
}
});
@ -173,8 +173,8 @@ impl Browser {
action_page_pin.connect_activate({
let window = window.clone();
move |_, _| {
window.tab_pin();
move |this, _| {
window.tab_pin(page_position_from_action_state(this));
}
});