mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 19:38:29 +00:00
Prepare for follow-on change
This commit is contained in:
parent
f555c4f467
commit
71828e7917
@ -25,7 +25,7 @@ impl OperationView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn operations(&self) -> impl Iterator<Item = (&Self, bool, usize)> {
|
pub fn operations(&self) -> impl Iterator<Item = (&Self, bool, usize)> {
|
||||||
self.operations_inner()
|
self.operations_inner(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn select_last(&mut self) {
|
pub fn select_last(&mut self) {
|
||||||
@ -50,8 +50,11 @@ impl OperationView {
|
|||||||
.unwrap_or(self.clone())
|
.unwrap_or(self.clone())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn operations_inner(&self) -> impl Iterator<Item = (&Self, bool, usize)> {
|
fn operations_inner(
|
||||||
iter::once((self, true, 0)).chain(
|
&self,
|
||||||
|
selected: bool,
|
||||||
|
) -> impl Iterator<Item = (&Self, bool, usize)> {
|
||||||
|
iter::once((self, selected, 0)).chain(
|
||||||
self.children
|
self.children
|
||||||
.iter()
|
.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
|
Loading…
Reference in New Issue
Block a user