diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-11-18 01:28:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 01:28:53 -0500 |
commit | 669b245367d194b7f4f7a12fe29573fcd9ca4e4e (patch) | |
tree | 5d4822751b16bf4a6b46a2995348ca90b6866152 /src/options.rs | |
parent | e43456207be0757fbb9c05f93a169063faf673b7 (diff) |
feature: Add collapsible tree entries (#304)
Adds collapsible trees to the tree mode for processes. These can be toggled via the + or - keys and the mouse by clicking on a selected entry.
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs index 07be698f..9c1e6215 100644 --- a/src/options.rs +++ b/src/options.rs @@ -115,6 +115,7 @@ pub struct ConfigFlags { #[builder(default, setter(strip_option))] pub no_write: Option<bool>, + // For built-in colour palettes. #[builder(default, setter(strip_option))] pub color: Option<String>, @@ -362,7 +363,8 @@ pub fn build_app( 1 }, disable_click: get_disable_click(matches, config), - no_write: get_no_write(matches, config), + // no_write: get_no_write(matches, config), + no_write: false, }; let used_widgets = UsedWidgets { @@ -845,6 +847,7 @@ fn get_use_battery(matches: &clap::ArgMatches<'static>, config: &Config) -> bool false } +#[allow(dead_code)] fn get_no_write(matches: &clap::ArgMatches<'static>, config: &Config) -> bool { if matches.is_present("no_write") { return true; |