mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 09:58:27 +00:00
Add OpsLog::select_previous
This commit is contained in:
parent
29527442dc
commit
225e66a92e
@ -98,7 +98,7 @@ impl ApplicationHandler for App {
|
||||
self.ops.select_next();
|
||||
}
|
||||
Key::Named(NamedKey::ArrowUp) => {
|
||||
self.ops.selected = self.ops.selected.saturating_sub(1);
|
||||
self.ops.select_previous();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
@ -60,6 +60,10 @@ impl OpsLog {
|
||||
self.selected += 1;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn select_previous(&mut self) {
|
||||
self.selected = self.selected.saturating_sub(1);
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for OpsLog {
|
||||
|
Loading…
Reference in New Issue
Block a user