Pass AppState to workspace:join_worktree

This commit is contained in:
Antonio Scandurra 2021-07-12 17:02:22 +02:00
parent ccff27a157
commit a661b43e75

View file

@ -25,7 +25,7 @@ pub fn menus(state: &Arc<AppState>) -> Vec<Menu<'static>> {
name: "Join", name: "Join",
keystroke: None, keystroke: None,
action: "workspace:join_worktree", action: "workspace:join_worktree",
arg: None, arg: Some(Box::new(state.clone())),
}, },
MenuItem::Action { MenuItem::Action {
name: "Quit", name: "Quit",