bar: restore the battery icon on narrow screens
The unified BarContent applied the desktop gate (useShortenedForm < 2) to every device, but ii-phone had shown battery ungated — note 5 in this file's own header. A 1080-wide panel sits at form 2, so the icon vanished on 2026-08-11 while the critical-battery alert kept firing beside it.
This commit is contained in:
parent
912fb88881
commit
ef3a8513d1
1 changed files with 5 additions and 1 deletions
|
|
@ -246,8 +246,12 @@ Item { // Bar content region
|
|||
|
||||
Component {
|
||||
id: batteryComp
|
||||
// Ungated under `compact`: ii-phone showed the battery at every width
|
||||
// (note 5 in the header), and the unification applied the desktop gate
|
||||
// to every device, so a phone at useShortenedForm 2 lost its icon
|
||||
// silently while the critical-battery alert kept firing. 2026-08-13.
|
||||
BatteryIndicator {
|
||||
visible: Battery.available && root.useShortenedForm < 2
|
||||
visible: Battery.available && (root.profile === "compact" || root.useShortenedForm < 2)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue