Closes #20 - Battery percentage is now appropriately rounded instead of showing decimals.
This commit is contained in:
@@ -49,7 +49,7 @@ const BatteryLabel = () => {
|
||||
return [
|
||||
Widget.Icon({ icon: icon() }),
|
||||
Widget.Label({
|
||||
label: battery.bind("percent").as((p) => ` ${p}%`),
|
||||
label: battery.bind("percent").as((p) => ` ${Math.floor(p)}%`),
|
||||
}),
|
||||
];
|
||||
} else if (batAvail && !showLabel) {
|
||||
|
||||
Reference in New Issue
Block a user