Pass AppState as action arg to workspace:share_worktree

This commit is contained in:
Nathan Sobo 2021-07-09 21:26:54 -06:00
parent eeebc761b6
commit 4ffd29bd81

View file

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