diff --git a/src/blocks/battery.rs b/src/blocks/battery.rs index af36c7d321..90919da53c 100644 --- a/src/blocks/battery.rs +++ b/src/blocks/battery.rs @@ -138,7 +138,9 @@ pub async fn run(config: &Config, api: &CommonApi) -> Result<()> { if let Some(info) = &mut info { if info.capacity >= config.full_threshold { info.status = BatteryStatus::Full; - } else if info.capacity <= config.empty_threshold { + } else if info.capacity <= config.empty_threshold + && info.status != BatteryStatus::Charging + { info.status = BatteryStatus::Empty; } }