mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
iequidoo's review
This commit is contained in:
@@ -233,6 +233,11 @@ impl EnteredLoginParam {
|
||||
|
||||
/// Saves entered account settings,
|
||||
/// so that they can be prefilled if the user wants to configure the server again.
|
||||
///
|
||||
/// This is needed because all the UIs still use `get_config("mail_pw")` etc.
|
||||
/// in order to prefill the entered account settings.
|
||||
/// This will change when the UIs get a screen to list all available transports;
|
||||
/// afterwards, we can then remove `save_legacy()` and the corresponding configs.
|
||||
pub(crate) async fn save_legacy(&self, context: &Context) -> Result<()> {
|
||||
context.set_config(Config::Addr, Some(&self.addr)).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user