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