diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-12-28 14:34:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 14:34:32 -0500 |
commit | 60d0117c85e2e2f3d3072f767832a74093c496c1 (patch) | |
tree | 35ad77777f3dc9d353d6a4f5edaf8d364359c169 /src/app | |
parent | 30b2c2ea051d3c837edf82d595bf24a475da1431 (diff) |
feature: Add process_command to default to the process command (#379)
Adds a `process_command` flag and config option to default to showing the full command in the process widget on startup.
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/states.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/states.rs b/src/app/states.rs index fe32a50d..d30adcc4 100644 --- a/src/app/states.rs +++ b/src/app/states.rs @@ -409,7 +409,7 @@ pub struct ProcWidgetState { impl ProcWidgetState { pub fn init( is_case_sensitive: bool, is_match_whole_word: bool, is_use_regex: bool, is_grouped: bool, - show_memory_as_values: bool, is_tree_mode: bool, + show_memory_as_values: bool, is_tree_mode: bool, is_using_command: bool, ) -> Self { let mut process_search_state = ProcessSearchState::default(); @@ -450,7 +450,7 @@ impl ProcWidgetState { scroll_state: AppScrollWidgetState::default(), process_sorting_type, is_process_sort_descending, - is_using_command: false, + is_using_command, current_column_index: 0, is_sort_open: false, columns, |