mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +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
@@ -10,7 +10,6 @@ use crate::blob::BlobObject;
|
||||
use crate::chat;
|
||||
use crate::chat::delete_and_reset_all_device_msgs;
|
||||
use crate::config::Config;
|
||||
use crate::configure::*;
|
||||
use crate::constants::*;
|
||||
use crate::context::Context;
|
||||
use crate::dc_tools::*;
|
||||
@@ -414,7 +413,7 @@ fn import_backup(context: &Context, backup_to_import: impl AsRef<Path>) -> Resul
|
||||
);
|
||||
|
||||
ensure!(
|
||||
!dc_is_configured(context),
|
||||
!context.is_configured(),
|
||||
"Cannot import backups to accounts in use."
|
||||
);
|
||||
context.sql.close(&context);
|
||||
|
||||
Reference in New Issue
Block a user