Don't let high/low alert close low/high notification
This commit is contained in:
parent
ff50092d84
commit
d49b661053
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ void Battery::showHighNotification() {
|
||||||
highNotifyTimer->stop();
|
highNotifyTimer->stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if(charge > settings->getLowAlert()) {
|
||||||
qDebug() << "High notification timer: close notification";
|
qDebug() << "High notification timer: close notification";
|
||||||
notification->close();
|
notification->close();
|
||||||
}
|
}
|
||||||
|
@ -186,7 +186,7 @@ void Battery::showLowNotification() {
|
||||||
lowNotifyTimer->stop();
|
lowNotifyTimer->stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if(charge < settings->getHighAlert()) {
|
||||||
qDebug() << "Low notification timer: close notification";
|
qDebug() << "Low notification timer: close notification";
|
||||||
notification->close();
|
notification->close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue