Replace "Remove Folder from Project" label with "Remove from Project`
This commit is contained in:
parent
4bb5a2f19e
commit
137a3996a1
2 changed files with 5 additions and 5 deletions
|
@ -249,8 +249,8 @@ impl ProjectPanel {
|
||||||
));
|
));
|
||||||
if is_root {
|
if is_root {
|
||||||
menu_entries.push(ContextMenuItem::item(
|
menu_entries.push(ContextMenuItem::item(
|
||||||
"Remove Folder from Project",
|
"Remove from Project",
|
||||||
workspace::RemoveFolderFromProject(worktree_id),
|
workspace::RemoveWorktreeFromProject(worktree_id),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ type FollowableItemBuilders = HashMap<
|
||||||
>;
|
>;
|
||||||
|
|
||||||
#[derive(Clone, PartialEq)]
|
#[derive(Clone, PartialEq)]
|
||||||
pub struct RemoveFolderFromProject(pub WorktreeId);
|
pub struct RemoveWorktreeFromProject(pub WorktreeId);
|
||||||
|
|
||||||
actions!(
|
actions!(
|
||||||
workspace,
|
workspace,
|
||||||
|
@ -119,7 +119,7 @@ impl_internal_actions!(
|
||||||
OpenPaths,
|
OpenPaths,
|
||||||
ToggleFollow,
|
ToggleFollow,
|
||||||
JoinProject,
|
JoinProject,
|
||||||
RemoveFolderFromProject
|
RemoveWorktreeFromProject
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
impl_actions!(workspace, [ToggleProjectOnline]);
|
impl_actions!(workspace, [ToggleProjectOnline]);
|
||||||
|
@ -1052,7 +1052,7 @@ impl Workspace {
|
||||||
|
|
||||||
fn remove_folder_from_project(
|
fn remove_folder_from_project(
|
||||||
&mut self,
|
&mut self,
|
||||||
RemoveFolderFromProject(worktree_id): &RemoveFolderFromProject,
|
RemoveWorktreeFromProject(worktree_id): &RemoveWorktreeFromProject,
|
||||||
cx: &mut ViewContext<Self>,
|
cx: &mut ViewContext<Self>,
|
||||||
) {
|
) {
|
||||||
self.project
|
self.project
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue