diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-02-19 01:22:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 01:22:19 -0500 |
commit | f2975c3a7cfdf5d5b287313b78c5cbb7367a04e1 (patch) | |
tree | fae4fc5593386620515297a08a6bdf3c3d6c7b1e /src | |
parent | e6c9187928d49b796b7d8a2302c057e229d68805 (diff) |
change: Don't jump to top when using sort shortcuts (#418)
For consistency, we now don't automatically jump to the top of the list when using a sort shortcut. This behaviour already occurred with the sort menu and sorting by mouse clicks, so this is just now more consistent (and IMO less annoying, you can also always jump to the top via gg).
Diffstat (limited to 'src')
-rw-r--r-- | src/app.rs | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1482,7 +1482,6 @@ impl App { .set_to_sorted_index_from_type(&processes::ProcessSorting::CpuPercent); proc_widget_state.update_sorting_with_columns(); self.proc_state.force_update = Some(self.current_widget.widget_id); - self.skip_to_first(); } } } @@ -1504,7 +1503,6 @@ impl App { ); proc_widget_state.update_sorting_with_columns(); self.proc_state.force_update = Some(self.current_widget.widget_id); - self.skip_to_first(); } } } @@ -1521,7 +1519,6 @@ impl App { .set_to_sorted_index_from_type(&processes::ProcessSorting::Pid); proc_widget_state.update_sorting_with_columns(); self.proc_state.force_update = Some(self.current_widget.widget_id); - self.skip_to_first(); } } } @@ -1569,7 +1566,6 @@ impl App { ); proc_widget_state.update_sorting_with_columns(); self.proc_state.force_update = Some(self.current_widget.widget_id); - self.skip_to_first(); } } } |