Close notification early, once only
This commit is contained in:
parent
1a0b730a1c
commit
ac1e735d26
2 changed files with 3 additions and 6 deletions
|
@ -252,13 +252,13 @@ bool Battery::getChargerConnected() {
|
|||
}
|
||||
|
||||
void Battery::shutdown() {
|
||||
logV("Service shut down...");
|
||||
logV("Shutting down...");
|
||||
notification->close();
|
||||
blockSignals(true);
|
||||
if(updateTimer) {
|
||||
updateTimer->stop();
|
||||
logD("Update timer stopped");
|
||||
}
|
||||
notification->close();
|
||||
if(highNotifyTimer) {
|
||||
highNotifyTimer->stop();
|
||||
logD("High battery notification stopped");
|
||||
|
|
|
@ -24,10 +24,7 @@ MyNotification::MyNotification(QObject* parent) : QObject(parent)
|
|||
notification.setAppIcon("harbour-batterybuddy");
|
||||
}
|
||||
|
||||
MyNotification::~MyNotification()
|
||||
{
|
||||
notification.close();
|
||||
}
|
||||
MyNotification::~MyNotification() { }
|
||||
|
||||
void MyNotification::send(QString title, QString body, QString soundFile)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue