Update eww-battery-monitor

This commit is contained in:
Alexander Rosenberg 2025-02-06 17:01:40 -08:00
parent a0d2b83c4f
commit ed0b55c3b4
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -58,7 +58,7 @@ function print_state() {
percentage = state_info["percentage"] percentage = state_info["percentage"]
tooltip = "" tooltip = ""
if (state_info["charging"]) { if (state_info["charging"]) {
tooltip = "Until Full: " state_info["time to full"] tooltip = "Until Full: " (percentage == 100 ? "N/A" : state_info["time to full"])
} else { } else {
tooltip = "Until Empty: " state_info["time to empty"] tooltip = "Until Empty: " state_info["time to empty"]
} }