Skip to content
Snippets Groups Projects
Unverified Commit c51e9e6b authored by GyDi's avatar GyDi
Browse files

feat: add meta feature

parent 1a31fa90
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ windows-sys = { version = "0.36", features = ["Win32_System_LibraryLoader", "Win
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
verge-dev = []
debug-yml = []
default-meta = []
[profile.release]
panic = "abort"
......
......@@ -99,8 +99,14 @@ impl IVerge {
pub fn template() -> Self {
Self {
clash_core: Some("clash".into()),
language: Some("en".into()),
clash_core: match cfg!(feature = "default-meta") {
false => Some("clash".into()),
true => Some("clash-meta".into()),
},
language: match cfg!(feature = "default-meta") {
false => Some("en".into()),
true => Some("zh".into()),
},
theme_mode: Some("system".into()),
theme_blur: Some(false),
traffic_graph: Some(true),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment