Remove cx param
This commit is contained in:
parent
c82fea375d
commit
1c9b984738
7 changed files with 31 additions and 64 deletions
|
@ -76,12 +76,7 @@ impl ContextMenu {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn action(
|
||||
mut self,
|
||||
label: impl Into<SharedString>,
|
||||
action: Box<dyn Action>,
|
||||
cx: &mut WindowContext,
|
||||
) -> Self {
|
||||
pub fn action(mut self, label: impl Into<SharedString>, action: Box<dyn Action>) -> Self {
|
||||
self.items.push(ContextMenuItem::Entry {
|
||||
label: label.into(),
|
||||
action: Some(action.boxed_clone()),
|
||||
|
@ -91,12 +86,7 @@ impl ContextMenu {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn link(
|
||||
mut self,
|
||||
label: impl Into<SharedString>,
|
||||
action: Box<dyn Action>,
|
||||
cx: &mut WindowContext,
|
||||
) -> Self {
|
||||
pub fn link(mut self, label: impl Into<SharedString>, action: Box<dyn Action>) -> Self {
|
||||
self.items.push(ContextMenuItem::Entry {
|
||||
label: label.into(),
|
||||
action: Some(action.boxed_clone()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue