mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-04 23:53:45 +08:00
fix: unable to switch subscribtion profile
This commit is contained in:
parent
9b02088918
commit
937f43c270
@ -378,10 +378,10 @@ impl CoreManager {
|
||||
logging!(info, Type::Config, true, "开始更新配置");
|
||||
|
||||
// 1. 先生成新的配置内容
|
||||
// logging!(info, Type::Config, true, "生成新的配置内容");
|
||||
// Config::generate().await?;
|
||||
logging!(info, Type::Config, true, "生成新的配置内容");
|
||||
Config::generate().await?;
|
||||
|
||||
// 3. 验证配置
|
||||
// 2. 验证配置
|
||||
match self.validate_config().await {
|
||||
Ok((true, _)) => {
|
||||
logging!(info, Type::Config, true, "配置验证通过");
|
||||
|
@ -1,6 +1,4 @@
|
||||
use crate::enhance::seq::SeqMap;
|
||||
use crate::logging;
|
||||
use crate::utils::logging::Type;
|
||||
use crate::{enhance::seq::SeqMap, logging, utils::logging::Type};
|
||||
use anyhow::{anyhow, bail, Context, Result};
|
||||
use nanoid::nanoid;
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
|
Loading…
x
Reference in New Issue
Block a user