From 73a0c04e91eed6b8e177739086bc9d942c7e1b2c Mon Sep 17 00:00:00 2001 From: Federico Imberti <66013290+FI-153@users.noreply.github.com> Date: Tue, 6 Jan 2026 10:30:07 +0100 Subject: [PATCH] Battery widget settings hidden when the widget is disabled --- .../components/Settings/SettingsView.swift | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/DynamicIsland/components/Settings/SettingsView.swift b/DynamicIsland/components/Settings/SettingsView.swift index 170aa8e..7838fef 100644 --- a/DynamicIsland/components/Settings/SettingsView.swift +++ b/DynamicIsland/components/Settings/SettingsView.swift @@ -3235,22 +3235,22 @@ struct LockScreenSettings: View { if lockScreenWeatherShowsBatteryGauge { Defaults.Toggle("Use MacBook icon when on battery", key: .lockScreenWeatherBatteryUsesLaptopSymbol) .settingsHighlight(id: highlightID("Use MacBook icon when on battery")) + + Defaults.Toggle("Show charging status", key: .lockScreenWeatherShowsCharging) + .settingsHighlight(id: highlightID("Show charging status")) + + if lockScreenWeatherShowsCharging { + Defaults.Toggle("Show charging percentage", key: .lockScreenWeatherShowsChargingPercentage) + .settingsHighlight(id: highlightID("Show charging percentage")) + } + + Defaults.Toggle("Show Bluetooth battery", key: .lockScreenWeatherShowsBluetooth) + .settingsHighlight(id: highlightID("Show Bluetooth battery")) } - - Defaults.Toggle("Show charging status", key: .lockScreenWeatherShowsCharging) - .settingsHighlight(id: highlightID("Show charging status")) - - if lockScreenWeatherShowsCharging { - Defaults.Toggle("Show charging percentage", key: .lockScreenWeatherShowsChargingPercentage) - .settingsHighlight(id: highlightID("Show charging percentage")) - } - - Defaults.Toggle("Show Bluetooth battery", key: .lockScreenWeatherShowsBluetooth) - .settingsHighlight(id: highlightID("Show Bluetooth battery")) } header: { Text("Battery Widget") } footer: { - Text("Enable the battery capsule and configure its layout") + Text("Enable the battery capsule and configure its layout.") } Section {