diff --git a/experiments/2024-12-09/src/ui.rs b/experiments/2024-12-09/src/ui.rs index 868bb4116..11889a164 100644 --- a/experiments/2024-12-09/src/ui.rs +++ b/experiments/2024-12-09/src/ui.rs @@ -1,20 +1,20 @@ use crate::geometry::Operation; pub struct OperationView { - ops_log: Box, + operation: Box, selected: usize, } impl OperationView { pub fn new(operation: impl Operation + 'static) -> Self { Self { - ops_log: Box::new(operation), + operation: Box::new(operation), selected: 0, } } pub fn operations(&self) -> Vec<(Box, bool)> { - self.ops_log + self.operation .children() .into_iter() .enumerate()