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
f555c4f467
commit
71828e7917
@ -25,7 +25,7 @@ impl OperationView {
|
||||
}
|
||||
|
||||
pub fn operations(&self) -> impl Iterator<Item = (&Self, bool, usize)> {
|
||||
self.operations_inner()
|
||||
self.operations_inner(true)
|
||||
}
|
||||
|
||||
pub fn select_last(&mut self) {
|
||||
@ -50,8 +50,11 @@ impl OperationView {
|
||||
.unwrap_or(self.clone())
|
||||
}
|
||||
|
||||
fn operations_inner(&self) -> impl Iterator<Item = (&Self, bool, usize)> {
|
||||
iter::once((self, true, 0)).chain(
|
||||
fn operations_inner(
|
||||
&self,
|
||||
selected: bool,
|
||||
) -> impl Iterator<Item = (&Self, bool, usize)> {
|
||||
iter::once((self, selected, 0)).chain(
|
||||
self.children
|
||||
.iter()
|
||||
.enumerate()
|
||||
|
Loading…
Reference in New Issue
Block a user