mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 08:38:32 +08:00
refactor: wip
This commit is contained in:
1 parent
f5f865a139
commit
84c12dee80
21 files changed
+324
-1498
No files matched your search
@@ -64,12 +64,12 @@ impl Hotkey {
|
||||
"clash_mode_global" => || feat::change_clash_mode("global".into()),
|
||||
"clash_mode_direct" => || feat::change_clash_mode("direct".into()),
|
||||
"clash_mode_script" => || feat::change_clash_mode("script".into()),
|
||||
"toggle_system_proxy" => || log_err!(feat::toggle_system_proxy()),
|
||||
"enable_system_proxy" => || log_err!(feat::enable_system_proxy()),
|
||||
"disable_system_proxy" => || log_err!(feat::disable_system_proxy()),
|
||||
"toggle_tun_mode" => || log_err!(feat::toggle_tun_mode()),
|
||||
"enable_tun_mode" => || log_err!(feat::enable_tun_mode()),
|
||||
"disable_tun_mode" => || log_err!(feat::disable_tun_mode()),
|
||||
"toggle_system_proxy" => || feat::toggle_system_proxy(),
|
||||
"enable_system_proxy" => || feat::enable_system_proxy(),
|
||||
"disable_system_proxy" => || feat::disable_system_proxy(),
|
||||
"toggle_tun_mode" => || feat::toggle_tun_mode(),
|
||||
"enable_tun_mode" => || feat::enable_tun_mode(),
|
||||
"disable_tun_mode" => || feat::disable_tun_mode(),
|
||||
|
||||
_ => bail!("invalid function \"{func}\""),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user