mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 18:08:26 +00:00
Prepare for follow-on change
This commit is contained in:
parent
23bc714a92
commit
94625ac329
@ -49,12 +49,12 @@ impl OperationView {
|
||||
}
|
||||
|
||||
pub fn selected(&self) -> Option<Self> {
|
||||
let selected = self.selected?;
|
||||
|
||||
self.selected.and_then(|selected| {
|
||||
self.operations()
|
||||
.into_iter()
|
||||
.nth(selected)
|
||||
.map(|(op, _)| op)
|
||||
})
|
||||
}
|
||||
|
||||
fn last_index(&self) -> usize {
|
||||
|
Loading…
Reference in New Issue
Block a user