(&self)
| 335 | } |
| 336 | |
| 337 | pub fn effective_diff_config(&self) -> DiffObjConfig { |
| 338 | let mut config = self.config.diff_obj_config.clone(); |
| 339 | if let Some(project) = self.current_project_config.as_ref() { |
| 340 | if let Some(options) = project.options.as_ref() { |
| 341 | // Ignore errors here, we display them when loading the project config |
| 342 | let _ = apply_project_options(&mut config, options); |
| 343 | } |
| 344 | if let Some(selected) = self.config.selected_obj.as_ref() |
| 345 | && let Some(units) = project.units.as_deref() |
| 346 | && let Some(unit) = units.iter().find(|unit| unit.name() == selected.name) |
| 347 | && let Some(options) = unit.options() |
| 348 | { |
| 349 | let _ = apply_project_options(&mut config, options); |
| 350 | } |
| 351 | } |
| 352 | config |
| 353 | } |
| 354 | |
| 355 | pub fn set_selecting_left(&mut self, right: &str) { |
| 356 | let Some(object) = self.config.selected_obj.as_mut() else { |
no test coverage detected