This commit is contained in:
@@ -175,11 +175,11 @@ async fn update(State(st): State<AppState>, Form(form): Form<ConfigForm>) -> Res
|
|||||||
*st.client.write().await = new_client;
|
*st.client.write().await = new_client;
|
||||||
*st.config.write().await = cfg.clone();
|
*st.config.write().await = cfg.clone();
|
||||||
|
|
||||||
if let Some(path) = &st.config_path {
|
if let Some(path) = &st.config_path
|
||||||
if let Err(e) = cfg.save(path) {
|
&& let Err(e) = cfg.save(path)
|
||||||
|
{
|
||||||
tracing::error!("Config konnte nicht gespeichert werden: {e}");
|
tracing::error!("Config konnte nicht gespeichert werden: {e}");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Html(render(&cfg, true).into_string()).into_response()
|
Html(render(&cfg, true).into_string()).into_response()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user