Browse Source

feat: check config when change core

GyDi 2 years ago
parent
commit
48e14b36b8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src-tauri/src/core/core.rs

+ 2 - 0
src-tauri/src/core/core.rs

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