From 6cc6f0dfe4956dd76fb494a9d04391bb82e673ac Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Fri, 19 Jan 2024 16:57:12 +0100 Subject: [PATCH] report current value, not previous one --- daemon/src/deviceinterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/deviceinterface.cpp b/daemon/src/deviceinterface.cpp index 7b5e9293..f1c164ce 100644 --- a/daemon/src/deviceinterface.cpp +++ b/daemon/src/deviceinterface.cpp @@ -506,7 +506,7 @@ void DeviceInterface::slot_informationChanged(AbstractDevice::Info key, const QS log_battery_level(battery_level); if (battery_level <= 10 && battery_level < m_lastBatteryLevel && AmazfishConfig::instance()->appNotifyLowBattery()) { - sendAlert("Amazfish", tr("Low Battery"), tr("Battery level now ") + QString::number(m_lastBatteryLevel) + "%"); + sendAlert("Amazfish", tr("Low Battery"), tr("Battery level now ") + QString::number(battery_level) + "%"); } m_lastBatteryLevel = battery_level; }