feat: only show enabled options

This commit is contained in:
Beingpax 2025-08-07 23:00:11 +05:45
parent bef09a3c5f
commit 3607af7d36

View File

@ -17,7 +17,7 @@ struct PowerModePopover: View {
ScrollView {
VStack(alignment: .leading, spacing: 4) {
ForEach(powerModeManager.configurations) { config in
ForEach(powerModeManager.configurations.filter { $0.isEnabled }) { config in
PowerModeRow(
config: config,
isSelected: selectedConfig?.id == config.id,