Skip to content

Commit

Permalink
[lipstick] Don't send low battery notification twice. Contributes to …
Browse files Browse the repository at this point in the history
…JB#34510
  • Loading branch information
Timur Kristóf committed Mar 5, 2019
1 parent b33ad9f commit 798e331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notifications/batterynotifier.cpp
Expand Up @@ -124,8 +124,8 @@ void BatteryNotifier::prepareNotification()

if ((isLevelChanged || isStateChanged) && !isAnyChargingState) {
if (newState.level == BatteryLow) {
// lowBatteryAlert is called immediately, and will send NotificationLowBattery
startLowBatteryNotifier();
toSend << NotificationLowBattery;
} else if (isLevelChanged && m_lastState.state == StateDischarging) {
toRemove << NotificationLowBattery;

Expand Down

0 comments on commit 798e331

Please sign in to comment.