mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-03 17:38:27 +00:00
Simplify
This commit is contained in:
parent
5a30ea690d
commit
582e229139
@ -28,7 +28,7 @@ impl OperationView {
|
||||
|
||||
pub fn select_next(&mut self) {
|
||||
if let Some(selected) = self.selected {
|
||||
if selected + 1 < self.operations().len() {
|
||||
if selected < self.last_index() {
|
||||
self.selected = Some(selected + 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user