refactor(fabrics): one fabric is divided into several parts
This commit is contained in:
@@ -94,7 +94,15 @@ pub fn signal_reducing_page(wrapper: &Box) {
|
||||
factory.connect_bind(clone!(
|
||||
#[strong]
|
||||
values,
|
||||
move |factory, list| column_view_bind_factory(factory, list, values.get(), label)
|
||||
move |_, list| {
|
||||
match label {
|
||||
"f, МГц" => frequency_column_fabric(list),
|
||||
"Xc, Ом" => reactive_resist_fabric(list, values.get()),
|
||||
"Vп, мВ" => signal_source_voltage_fabric(list, values.get()),
|
||||
"ζ" => coef_fabric(list, values.get()),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
));
|
||||
|
||||
let column = ColumnViewColumn::builder()
|
||||
@@ -135,7 +143,6 @@ pub fn signal_reducing_page(wrapper: &Box) {
|
||||
if find_by_frequency_value(&model, &new_elem).is_none() {
|
||||
model.append(&new_elem);
|
||||
}
|
||||
|
||||
update_column_view(&result_table);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user