mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 19:08:28 +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> {
|
pub fn selected(&self) -> Option<Self> {
|
||||||
let selected = self.selected?;
|
self.selected.and_then(|selected| {
|
||||||
|
self.operations()
|
||||||
self.operations()
|
.into_iter()
|
||||||
.into_iter()
|
.nth(selected)
|
||||||
.nth(selected)
|
.map(|(op, _)| op)
|
||||||
.map(|(op, _)| op)
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn last_index(&self) -> usize {
|
fn last_index(&self) -> usize {
|
||||||
|
Loading…
Reference in New Issue
Block a user