feat: Support Disable Tray Click Event (#38)

#21
This commit is contained in:
Pylogmon 2023-11-30 22:45:02 +08:00 committed by GitHub
parent 389ce60bc9
commit 306c3bea21
2 changed files with 3 additions and 1 deletions

View File

@ -186,7 +186,8 @@ impl Tray {
match tray_event.as_str() {
"system_proxy" => feat::toggle_system_proxy(),
"tun_mode" => feat::toggle_tun_mode(),
_ => resolve::create_window(app_handle),
"main_window" => resolve::create_window(app_handle),
_ => {}
}
}

View File

@ -103,6 +103,7 @@ const SettingVerge = ({ onError }: Props) => {
<MenuItem value="main_window">{t("Show Main Window")}</MenuItem>
<MenuItem value="system_proxy">{t("System Proxy")}</MenuItem>
<MenuItem value="tun_mode">{t("Tun Mode")}</MenuItem>
<MenuItem value="disable">{t("Disable")}</MenuItem>
</Select>
</GuardState>
</SettingItem>