insert new tab after current on middle click

This commit is contained in:
yggverse 2024-10-15 15:55:14 +03:00
parent 29588c0d0b
commit 18d0da99f2
5 changed files with 18 additions and 6 deletions

View file

@ -35,6 +35,7 @@ impl Item {
action_tab_page_navigation_reload: Arc<SimpleAction>,
action_update: Arc<SimpleAction>,
// Options
position: Option<i32>,
is_pinned: bool,
is_selected: bool,
) -> Arc<Self> {
@ -58,6 +59,7 @@ impl Item {
tab_view,
page.gobject(),
None,
position,
is_pinned,
is_selected,
); // @TODO
@ -149,6 +151,7 @@ impl Item {
action_tab_page_navigation_reload.clone(),
action_update.clone(),
// Options
None,
record.is_pinned,
record.is_selected,
);