mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 02:18:28 +00:00
Prepare for follow-on change
This commit is contained in:
parent
6cff14dcda
commit
3f0a76aaf4
@ -37,9 +37,9 @@ impl OperationView {
|
||||
}
|
||||
|
||||
pub fn selected(&self) -> Option<Box<dyn Operation>> {
|
||||
self.ops_log
|
||||
.operations
|
||||
.get(self.selected)
|
||||
.map(|op| Box::new(op.clone()) as _)
|
||||
self.operations()
|
||||
.into_iter()
|
||||
.nth(self.selected)
|
||||
.map(|(op, _)| op)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user