edit predictions: Disable "This Buffer" option when disabled for language (#25566)
 Release Notes: - edit prediction: Disable "This Buffer" option when predictions are disabled for its language
This commit is contained in:
parent
21fc3c07b6
commit
7075bd700f
4 changed files with 39 additions and 26 deletions
|
@ -95,8 +95,8 @@ impl ContextMenuEntry {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn action(mut self, action: Option<Box<dyn Action>>) -> Self {
|
||||
self.action = action;
|
||||
pub fn action(mut self, action: Box<dyn Action>) -> Self {
|
||||
self.action = Some(action);
|
||||
self
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue