From a0b59a8a7405bf36f24b3da5ea3e343f22e1e178 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 14 May 2026 12:53:57 +0500 Subject: [PATCH] web: hide setting group if all settings under it are hidden --- apps/web/src/dialogs/settings/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/dialogs/settings/index.tsx b/apps/web/src/dialogs/settings/index.tsx index 8b05e70d1..3360fa082 100644 --- a/apps/web/src/dialogs/settings/index.tsx +++ b/apps/web/src/dialogs/settings/index.tsx @@ -437,7 +437,9 @@ function SettingsGroupComponent(props: { item: SettingsGroup }) { }; }, [onStateChange]); - if (item.isHidden?.()) return null; + const allHidden = item.settings.every((s) => s.isHidden?.()); + if (item.isHidden?.() || allHidden) return null; + return (