mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Update tui/src/state.rs
Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
This commit is contained in:
parent
e3ed8bfa5a
commit
8276d28b8d
|
@ -761,9 +761,6 @@ impl AppState {
|
|||
|
||||
fn scroll_tab_down(&mut self) {
|
||||
let len = self.tabs.len();
|
||||
if len == 0 {
|
||||
return;
|
||||
}
|
||||
let current = self.current_tab.selected().unwrap_or(0);
|
||||
let next = if current + 1 >= len { 0 } else { current + 1 };
|
||||
self.current_tab.select(Some(next));
|
||||
|
|
Loading…
Reference in New Issue
Block a user