Skip to content

Commit

Permalink
Allow the modification of the sort order everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Syllo committed Mar 29, 2018
1 parent 2372b68 commit 3b56814
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1253,18 +1253,10 @@ void interface_key(int keyId, struct nvtop_interface *inter) {
}
break;
case '+':
if (inter->option_window.state == nvtop_option_state_sort_by) {
inter->process.sort_asc = true;
inter->option_window.state = nvtop_option_state_hidden;
move_process_win_for_hidden_options(inter);
}
inter->process.sort_asc = true;
break;
case '-':
if (inter->option_window.state == nvtop_option_state_sort_by) {
inter->process.sort_asc = false;
inter->option_window.state = nvtop_option_state_hidden;
move_process_win_for_hidden_options(inter);
}
inter->process.sort_asc = false;
break;
case '\n':
case KEY_ENTER:
Expand Down

0 comments on commit 3b56814

Please sign in to comment.