mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Battery widget settings hidden when the widget is disabled
This commit is contained in:
parent
cead5d6940
commit
73a0c04e91
1 changed files with 12 additions and 12 deletions
|
|
@ -3235,7 +3235,6 @@ struct LockScreenSettings: View {
|
||||||
if lockScreenWeatherShowsBatteryGauge {
|
if lockScreenWeatherShowsBatteryGauge {
|
||||||
Defaults.Toggle("Use MacBook icon when on battery", key: .lockScreenWeatherBatteryUsesLaptopSymbol)
|
Defaults.Toggle("Use MacBook icon when on battery", key: .lockScreenWeatherBatteryUsesLaptopSymbol)
|
||||||
.settingsHighlight(id: highlightID("Use MacBook icon when on battery"))
|
.settingsHighlight(id: highlightID("Use MacBook icon when on battery"))
|
||||||
}
|
|
||||||
|
|
||||||
Defaults.Toggle("Show charging status", key: .lockScreenWeatherShowsCharging)
|
Defaults.Toggle("Show charging status", key: .lockScreenWeatherShowsCharging)
|
||||||
.settingsHighlight(id: highlightID("Show charging status"))
|
.settingsHighlight(id: highlightID("Show charging status"))
|
||||||
|
|
@ -3247,10 +3246,11 @@ struct LockScreenSettings: View {
|
||||||
|
|
||||||
Defaults.Toggle("Show Bluetooth battery", key: .lockScreenWeatherShowsBluetooth)
|
Defaults.Toggle("Show Bluetooth battery", key: .lockScreenWeatherShowsBluetooth)
|
||||||
.settingsHighlight(id: highlightID("Show Bluetooth battery"))
|
.settingsHighlight(id: highlightID("Show Bluetooth battery"))
|
||||||
|
}
|
||||||
} header: {
|
} header: {
|
||||||
Text("Battery Widget")
|
Text("Battery Widget")
|
||||||
} footer: {
|
} footer: {
|
||||||
Text("Enable the battery capsule and configure its layout")
|
Text("Enable the battery capsule and configure its layout.")
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue