Only show battery widget settings on MacBooks

This commit is contained in:
Federico Imberti 2026-01-06 10:32:46 +01:00
commit b9b8aeeea6
2 changed files with 23 additions and 21 deletions

View file

@ -8243,7 +8243,7 @@
"Enable stats monitoring in Settings to view system performance data." : {
},
"Enable the battery capsule and configure its layout" : {
"Enable the battery capsule and configure its layout." : {
},
"Enable the timer feature in Settings to access this tab." : {

View file

@ -3228,6 +3228,7 @@ struct LockScreenSettings: View {
Text("Enable the weather capsule and configure its layout, provider, units, and optional battery/AQI indicators.")
}
if BatteryActivityManager.shared.hasBattery() {
Section {
Defaults.Toggle("Show battery indicator", key: .lockScreenWeatherShowsBatteryGauge)
.settingsHighlight(id: highlightID("Show battery indicator"))
@ -3252,6 +3253,7 @@ struct LockScreenSettings: View {
} footer: {
Text("Enable the battery capsule and configure its layout.")
}
}
Section {
Defaults.Toggle("Show focus widget", key: .enableLockScreenFocusWidget)