feat: Support Open/Close Dashboard Hotkey

#439
This commit is contained in:
MystiPanda
2024-02-24 13:39:30 +08:00
parent 8e4d7e989b
commit 2835e79973
6 changed files with 13 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ impl Hotkey {
}
let f = match func.trim() {
"open_dashboard" => feat::open_dashboard,
"open_or_close_dashboard" => feat::open_or_close_dashboard,
"clash_mode_rule" => || feat::change_clash_mode("rule".into()),
"clash_mode_global" => || feat::change_clash_mode("global".into()),
"clash_mode_direct" => || feat::change_clash_mode("direct".into()),