MCPcopy Index your code
hub / github.com/encounter/objdiff / effective_diff_config

Method effective_diff_config

objdiff-gui/src/app.rs:337–353  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 4

create_scratch_configFunction · 0.80
create_objdiff_configFunction · 0.80
updateMethod · 0.80
config_property_uiFunction · 0.80

Calls 3

apply_project_optionsFunction · 0.85
nameMethod · 0.80
optionsMethod · 0.45

Tested by

no test coverage detected