feat: check config when change core

This commit is contained in:
GyDi 2022-11-21 22:27:55 +08:00
parent b3c1c56579
commit 48e14b36b8
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

@ -210,6 +210,8 @@ impl CoreManager {
Config::verge().draft().clash_core = Some(clash_core);
self.check_config()?;
// 清掉旧日志
Logger::global().clear_log();