Hide battery if state is 0
This commit is contained in:
parent
75c8be2bd1
commit
2e0c8872f4
|
@ -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>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue