mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-10 19:10:57 +00:00
conf: set mailbox autoload default to false
This commit is contained in:
parent
083732ed33
commit
34ed9e2014
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user