conf: set mailbox autoload default to false

async
Manos Pitsidianakis 2020-06-22 11:31:43 +03:00
parent 083732ed33
commit 34ed9e2014
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 4 deletions

View File

@ -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> {