Remove cx param
This commit is contained in:
parent
c82fea375d
commit
1c9b984738
7 changed files with 31 additions and 64 deletions
|
@ -397,7 +397,6 @@ impl ProjectPanel {
|
|||
menu = menu.action(
|
||||
"Add Folder to Project",
|
||||
Box::new(workspace::AddFolderToProject),
|
||||
cx,
|
||||
);
|
||||
if is_root {
|
||||
menu = menu.entry(
|
||||
|
@ -412,35 +411,35 @@ impl ProjectPanel {
|
|||
}
|
||||
|
||||
menu = menu
|
||||
.action("New File", Box::new(NewFile), cx)
|
||||
.action("New Folder", Box::new(NewDirectory), cx)
|
||||
.action("New File", Box::new(NewFile))
|
||||
.action("New Folder", Box::new(NewDirectory))
|
||||
.separator()
|
||||
.action("Cut", Box::new(Cut), cx)
|
||||
.action("Copy", Box::new(Copy), cx);
|
||||
.action("Cut", Box::new(Cut))
|
||||
.action("Copy", Box::new(Copy));
|
||||
|
||||
if let Some(clipboard_entry) = self.clipboard_entry {
|
||||
if clipboard_entry.worktree_id() == worktree_id {
|
||||
menu = menu.action("Paste", Box::new(Paste), cx);
|
||||
menu = menu.action("Paste", Box::new(Paste));
|
||||
}
|
||||
}
|
||||
|
||||
menu = menu
|
||||
.separator()
|
||||
.action("Copy Path", Box::new(CopyPath), cx)
|
||||
.action("Copy Relative Path", Box::new(CopyRelativePath), cx)
|
||||
.action("Copy Path", Box::new(CopyPath))
|
||||
.action("Copy Relative Path", Box::new(CopyRelativePath))
|
||||
.separator()
|
||||
.action("Reveal in Finder", Box::new(RevealInFinder), cx);
|
||||
.action("Reveal in Finder", Box::new(RevealInFinder));
|
||||
|
||||
if is_dir {
|
||||
menu = menu
|
||||
.action("Open in Terminal", Box::new(OpenInTerminal), cx)
|
||||
.action("Search Inside", Box::new(NewSearchInDirectory), cx)
|
||||
.action("Open in Terminal", Box::new(OpenInTerminal))
|
||||
.action("Search Inside", Box::new(NewSearchInDirectory))
|
||||
}
|
||||
|
||||
menu = menu.separator().action("Rename", Box::new(Rename), cx);
|
||||
menu = menu.separator().action("Rename", Box::new(Rename));
|
||||
|
||||
if !is_root {
|
||||
menu = menu.action("Delete", Box::new(Delete), cx);
|
||||
menu = menu.action("Delete", Box::new(Delete));
|
||||
}
|
||||
|
||||
menu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue