Commit 527bd99c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Add wording for when battery gets low while it is charged

Don't tell the user to plug in the cable when it's already plugged in.
parent d1d9ed7d
Pipeline #209364 passed with stage
in 1 minute and 45 seconds
......@@ -649,7 +649,11 @@ void Core::handleLowBattery(int percent)
m_lowBatteryNotification = new KNotification(QStringLiteral("lowbattery"), KNotification::Persistent, nullptr);
m_lowBatteryNotification->setComponentName(QStringLiteral("powerdevil"));
updateBatteryNotifications(percent); // sets title
m_lowBatteryNotification->setText(i18n("Battery running low - to continue using your computer, plug it in or shut it down and change the battery."));
if (m_backend->acAdapterState() == BackendInterface::Plugged) {
m_lowBatteryNotification->setText(i18n("Battery running low - to continue using your computer, make sure that the power adapter is plugged in and that it provides enough power."));
} else {
m_lowBatteryNotification->setText(i18n("Battery running low - to continue using your computer, plug it in or shut it down and change the battery."));
}
m_lowBatteryNotification->setUrgency(KNotification::CriticalUrgency);
m_lowBatteryNotification->sendEvent();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment