Browse Source

feat: check config when change core

GyDi 2 năm trước cách đây
mục cha
commit
48e14b36b8
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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();