summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-11-18 01:28:53 -0500
committerGitHub <noreply@github.com>2020-11-18 01:28:53 -0500
commit669b245367d194b7f4f7a12fe29573fcd9ca4e4e (patch)
tree5d4822751b16bf4a6b46a2995348ca90b6866152 /src/options.rs
parente43456207be0757fbb9c05f93a169063faf673b7 (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.rs5
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;