feat: optimize config feedback

This commit is contained in:
GyDi
2022-09-26 20:46:29 +08:00
committed by GitHub
parent 1b336d973d
commit e30ba07285
7 changed files with 45 additions and 11 deletions

View File

@@ -284,9 +284,14 @@ impl Core {
match Service::set_config(clash_info, config).await {
Ok(_) => {
let handle = handle.lock();
handle.refresh_clash()
handle.refresh_clash();
handle.notice_message("set_config::ok".into(), "ok".into());
}
Err(err) => {
let handle = handle.lock();
handle.notice_message("set_config::error".into(), format!("{err}"));
log::error!(target: "app", "last {err}")
}
Err(err) => log::error!(target: "app", "{err}"),
}
});