edit predictions: Disable "This Buffer" option when disabled for language (#25566)

![image](https://github.com/user-attachments/assets/7b888c7d-a1e9-4d0b-ba6d-9a41916acf79)


Release Notes:

- edit prediction: Disable "This Buffer" option when predictions are
disabled for its language
This commit is contained in:
Agus Zubiaga 2025-02-25 12:41:13 -03:00 committed by GitHub
parent 21fc3c07b6
commit 7075bd700f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 26 deletions

View file

@ -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
}