Don't let high/low alert close low/high notification

This commit is contained in:
Matti Viljanen 2020-12-27 02:10:34 +02:00
parent ff50092d84
commit d49b661053

View file

@ -171,7 +171,7 @@ void Battery::showHighNotification() {
highNotifyTimer->stop();
}
}
else {
else if(charge > settings->getLowAlert()) {
qDebug() << "High notification timer: close notification";
notification->close();
}
@ -186,7 +186,7 @@ void Battery::showLowNotification() {
lowNotifyTimer->stop();
}
}
else {
else if(charge < settings->getHighAlert()) {
qDebug() << "Low notification timer: close notification";
notification->close();
}