chore: remove useless exit codes

This commit is contained in:
huzibaca
2024-09-25 11:47:01 +08:00
parent 3bcd8b8b2c
commit 08b1160d63
5 changed files with 15 additions and 9 deletions

View File

@@ -60,7 +60,8 @@ impl Hotkey {
"clash_mode_direct" => || feat::change_clash_mode("direct".into()),
"toggle_system_proxy" => feat::toggle_system_proxy,
"toggle_tun_mode" => feat::toggle_tun_mode,
"quit" => feat::quit,
"quit" => || feat::quit(Some(0)),
_ => bail!("invalid function \"{func}\""),
};