diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-06-22 11:31:43 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-06-22 11:31:43 +0300 |
commit | 34ed9e201464419db79792e35d3b2731d3766cce (patch) | |
tree | 1582b5ba0b3d3fd4c66af9d0119470fe807b9907 /melib/src/conf.rs | |
parent | 083732ed33d133fc38728f9a0a1f384b5f6482f4 (diff) |
conf: set mailbox autoload default to false
Diffstat (limited to 'melib/src/conf.rs')
-rw-r--r-- | melib/src/conf.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/melib/src/conf.rs b/melib/src/conf.rs index 160a327b..27b287d5 100644 --- a/melib/src/conf.rs +++ b/melib/src/conf.rs @@ -76,7 +76,7 @@ impl AccountSettings { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct MailboxConf { pub alias: Option<String>, - #[serde(default = "true_val")] + #[serde(default = "false_val")] pub autoload: bool, #[serde(default)] pub subscribe: ToggleFlag, @@ -92,7 +92,7 @@ impl Default for MailboxConf { fn default() -> Self { MailboxConf { alias: None, - autoload: true, + autoload: false, subscribe: ToggleFlag::Unset, ignore: ToggleFlag::Unset, usage: None, @@ -107,8 +107,8 @@ impl MailboxConf { } } -pub(in crate::conf) fn true_val() -> bool { - true +pub(in crate::conf) fn false_val() -> bool { + false } pub(in crate::conf) fn none<T>() -> Option<T> { |