mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
register new local action
This commit is contained in:
parent
7fdc053051
commit
ab73b9de5b
7 changed files with 60 additions and 24 deletions
|
|
@ -28,7 +28,7 @@ impl Item {
|
|||
pub fn new_arc(
|
||||
tab_view: &TabView,
|
||||
// Actions
|
||||
action_tab_append: Arc<SimpleAction>,
|
||||
action_tab_open: 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>,
|
||||
|
|
@ -44,7 +44,8 @@ impl Item {
|
|||
// Init components
|
||||
let page = Page::new_arc(
|
||||
id.clone(),
|
||||
action_tab_append.clone(),
|
||||
// Actions
|
||||
action_tab_open.clone(),
|
||||
action_tab_page_navigation_base.clone(),
|
||||
action_tab_page_navigation_history_back.clone(),
|
||||
action_tab_page_navigation_history_forward.clone(),
|
||||
|
|
@ -125,7 +126,7 @@ impl Item {
|
|||
transaction: &Transaction,
|
||||
app_browser_window_tab_id: &i64,
|
||||
// Actions
|
||||
action_tab_append: Arc<SimpleAction>,
|
||||
action_tab_open: 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>,
|
||||
|
|
@ -141,7 +142,7 @@ impl Item {
|
|||
let item = Item::new_arc(
|
||||
tab_view,
|
||||
// Actions
|
||||
action_tab_append.clone(),
|
||||
action_tab_open.clone(),
|
||||
action_tab_page_navigation_base.clone(),
|
||||
action_tab_page_navigation_history_back.clone(),
|
||||
action_tab_page_navigation_history_forward.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue