Skip to content

Commit 910655b

Browse files
committed
chore: fix not charging message in gui
Signed-off-by: Charlie Chiang <[email protected]>
1 parent 584f936 commit 910655b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/gui/cmd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,9 @@ If you want to stop batt completely (menubar app and the daemon), you can use th
458458
case powerinfo.Charging:
459459
state = "Charging"
460460
case powerinfo.Discharging:
461-
state = "Discharging"
461+
if batteryInfo.ChargeRate != 0 {
462+
state = "Discharging"
463+
}
462464
case powerinfo.Full:
463465
state = "Full"
464466
}

0 commit comments

Comments
 (0)