Skip to content

Commit

Permalink
uncomment change
Browse files Browse the repository at this point in the history
  • Loading branch information
micielski committed Sep 7, 2024
1 parent 98359c4 commit df96d4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rm-main/src/tui/tabs/torrents/table_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ impl TableManager {
self.update_rows_number();
self.sort();

// let mut state = self.table.state.borrow_mut();
// if state.selected().is_none() && !self.table.items.is_empty() {
// state.select(Some(0));
// }
let mut state = self.table.state.borrow_mut();
if state.selected().is_none() && !self.table.items.is_empty() {
state.select(Some(0));
}
}

pub fn set_filter(&mut self, filter: String) {
Expand Down

0 comments on commit df96d4e

Please sign in to comment.