stop showing hidden groups in the tray menu (#4765)

托盘菜单不显示隐藏代理组
This commit is contained in:
Thomas
2025-09-17 12:45:35 +08:00
committed by GitHub
Unverified
parent c438e916ca
commit 8c2262dd95

View File

@@ -635,7 +635,9 @@ async fn create_tray_menu(
let should_show = match mode {
"global" => group_name == "GLOBAL",
_ => group_name != "GLOBAL",
};
} &&
// Check if the group is hidden
!group_data.get("hidden").and_then(|v| v.as_bool( )).unwrap_or(false);
if !should_show {
continue;