fix: Volume not saved on new transfer creation
This commit is contained in:
parent
2ccb84041b
commit
e829a49424
|
@ -184,12 +184,15 @@ pub fn save_transfer_button_callback_callback(
|
|||
.iter()
|
||||
.find(|dpi| dpi.get_uuid() == main_state.selected_dest_plate)
|
||||
{
|
||||
let new_transfer = Transfer::new(
|
||||
// Only mutable for volume assignment!
|
||||
let mut new_transfer = Transfer::new(
|
||||
spi.clone(),
|
||||
dpi.clone(),
|
||||
ct_state.transfer.transfer_region.clone(),
|
||||
ct_state.transfer.name.clone(),
|
||||
);
|
||||
new_transfer.volume = ct_state.transfer.volume;
|
||||
|
||||
main_dispatch.reduce_mut(|state| {
|
||||
state.transfers.push(new_transfer);
|
||||
state.selected_transfer = state
|
||||
|
|
Loading…
Reference in New Issue