mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 12:38:42 +08:00
feat: clash meta core support (wip)
This commit is contained in:
1 parent
2a24fbadae
commit
d8d1cb2eda
5 files changed
+149
-37
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user