feat: clash meta core support (wip)

This commit is contained in:
GyDi committed 2022-05-16 01:52:50 +08:00
1 parent 2a24fbadae
commit d8d1cb2eda
5 files changed
+149 -37

No files matched your search

+7
View File
@@ -45,6 +45,10 @@ pub struct Verge {
/// theme setting
pub theme_setting: Option<VergeTheme>,
/// clash core path
#[serde(skip_serializing_if = "Option::is_none")]
pub clash_core: Option<String>,
}
#[derive(Default, Debug, Clone, Deserialize, Serialize)]
@@ -96,6 +100,9 @@ impl Verge {
if patch.traffic_graph.is_some() {
self.traffic_graph = patch.traffic_graph;
}
if patch.clash_core.is_some() {
self.clash_core = patch.clash_core;
}
// system setting
if patch.enable_silent_start.is_some() {