mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Add OperationView::operations
This commit is contained in:
parent
78f911b8d0
commit
424f90643d
@ -78,7 +78,7 @@ impl TextRenderer {
|
||||
},
|
||||
);
|
||||
|
||||
for (i, op) in operations.ops_log.operations.iter().enumerate() {
|
||||
for (i, op) in operations.operations().iter().enumerate() {
|
||||
let mut attrs = glyphon::Attrs::new();
|
||||
|
||||
if i == operations.selected {
|
||||
|
@ -13,6 +13,10 @@ impl OperationView {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn operations(&self) -> Vec<Box<dyn Operation>> {
|
||||
self.ops_log.children()
|
||||
}
|
||||
|
||||
pub fn select_last(&mut self) {
|
||||
self.selected = self.ops_log.operations.len().saturating_sub(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user