Skip to content

Commit

Permalink
fix: When refreshing the panel, the currently selected process is kep…
Browse files Browse the repository at this point in the history
…t into view.

Signed-off-by: Jan Willems <jw@elevenbits.com>
  • Loading branch information
jw committed May 12, 2024
1 parent ab37f0a commit 0020efb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ impl Process {
}
self.process_map = updated_processes;
self.processes = self.process_map.clone().into_values().collect();
self.state.select(Some(0));
self.scrollbar_state = self.scrollbar_state.content_length(length);
}

Expand Down

0 comments on commit 0020efb

Please sign in to comment.