AltStatusBarFix: battery percentage not shown #11976
Conversation
|
luacheck has some minor complaints, looks fine to me otherwise. |
poire-z
left a comment
There was a problem hiding this comment.
Thank you for fixing my mess :)
| if self.battery == 1 and self.battery_percent == 1 then -- append battery percentage | ||
| local batt_pre = "[" | ||
| local batt_post = "]" | ||
| local batt_val = "" |
| batt_lvl = batt_lvl + aux_batt_lvl | ||
| else | ||
| batt_pre = "+" | ||
| batt_post = "+" |
poire-z
left a comment
There was a problem hiding this comment.
(No experience about the AuxBattery stuff, but) looks ok.
|
Is the OP still true with these changes? (For the squash commit message.) |
|
The list 2 items yes. |
|
@poire-z Before merging an additional thought. During my last work with the alt status bar (1, 2 or even 3 years ago) I noticed, we could use unicode there too. ↯ would be nice to indicate charging. Does this concerns still holds true? |
|
Ready from my side: |
| local batt_pre = "[" | ||
| local batt_post = "]" |
There was a problem hiding this comment.
Is it ok these [ ] are gone when the battery is charging?
I think they somehow provide the shape of a bettery icon/level [ 45% ] (while also making it different from the book reading progress just before it), it's strange they go away when the battery is charging.
|
Ready? |



(A difference to the original behavior -> if the battery is charging, then show
[↯45%]' instead of[ + ]`)Regression (#11873)
This change is