draft new tab open on middle click

This commit is contained in:
yggverse 2024-10-14 01:13:26 +03:00
parent 0d55d492f3
commit 8f1e94dd68
8 changed files with 67 additions and 13 deletions

View file

@ -41,6 +41,7 @@ impl Page {
// Construct
pub fn new_arc(
name: GString,
action_tab_append: Arc<SimpleAction>,
action_tab_page_navigation_base: Arc<SimpleAction>,
action_tab_page_navigation_history_back: Arc<SimpleAction>,
action_tab_page_navigation_history_forward: Arc<SimpleAction>,
@ -54,7 +55,10 @@ impl Page {
));
// Init components
let content = Arc::new(Content::new(action_page_open.clone()));
let content = Arc::new(Content::new(
action_tab_append.clone(),
action_page_open.clone(),
));
let navigation = Navigation::new_arc(
action_tab_page_navigation_base.clone(),
action_tab_page_navigation_history_back.clone(),