Skip to content

Commit

Permalink
fix: regenerate config before change core
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Nov 23, 2022
1 parent e031389 commit f477cec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src-tauri/src/core/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ impl CoreManager {

Config::verge().draft().clash_core = Some(clash_core);

// 更新配置
Config::generate()?;

self.check_config()?;

// 清掉旧日志
Expand Down

0 comments on commit f477cec

Please sign in to comment.