Hide battery if state is 0

This commit is contained in:
Thomas Avé 2024-12-01 17:07:26 +01:00
parent 75c8be2bd1
commit 2e0c8872f4
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ function Right() : JSX.Element {
}
function BatteryIcon(): JSX.Element {
if (!battery) return <box />;
if (battery.get_state() == 0) return <box />;
return <button className="battery-item" onClicked={() => execAsync(['gnome-power-statistics'])}>
<box>
{