mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
Turn deltachat::configure functions into Context methods
Now configure module is no longer public. Users should call Context.configure() and Context.is_configured() methods. Configure module is completely hidden from documentation unless --document-private-items option is specified.
This commit is contained in:
committed by
Floris Bruynooghe
parent
e00d4e0ed8
commit
2977ceb459
@@ -22,7 +22,6 @@ use std::sync::{Arc, Mutex, RwLock};
|
||||
|
||||
use deltachat::chat::ChatId;
|
||||
use deltachat::config;
|
||||
use deltachat::configure::*;
|
||||
use deltachat::context::*;
|
||||
use deltachat::job::*;
|
||||
use deltachat::oauth2::*;
|
||||
@@ -463,7 +462,7 @@ fn handle_cmd(line: &str, ctx: Arc<RwLock<Context>>) -> Result<ExitResult, failu
|
||||
}
|
||||
"configure" => {
|
||||
start_threads(ctx.clone());
|
||||
configure(&ctx.read().unwrap());
|
||||
ctx.read().unwrap().configure();
|
||||
}
|
||||
"oauth2" => {
|
||||
if let Some(addr) = ctx.read().unwrap().get_config(config::Config::Addr) {
|
||||
|
||||
Reference in New Issue
Block a user