mirror of
https://github.com/actuallymentor/battery.git
synced 2026-03-17 22:32:10 +00:00
Fix confusing on/off meaning in 'adapter on/off' action
This commit is contained in:
@@ -727,9 +727,9 @@ if [[ "$action" == "adapter" ]]; then
|
||||
|
||||
# Set charging to on and off
|
||||
if [[ "$setting" == "on" ]]; then
|
||||
enable_discharging
|
||||
elif [[ "$setting" == "off" ]]; then
|
||||
disable_discharging
|
||||
elif [[ "$setting" == "off" ]]; then
|
||||
enable_discharging
|
||||
else
|
||||
log "Error: $setting is not \"on\" or \"off\"."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user