This commit is contained in:
Hanno Braun 2024-12-10 19:08:15 +01:00
parent 5a30ea690d
commit 582e229139

View File

@ -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);
}
}