Show/hide notifications as soon as charger is connected/disconnected
This commit is contained in:
parent
b2ff23aacc
commit
71b644e32d
1 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,11 @@ void Battery::updateData()
|
||||||
state = nextState;
|
state = nextState;
|
||||||
emit stateChanged(state);
|
emit stateChanged(state);
|
||||||
qDebug() << "Charging status:" << state;
|
qDebug() << "Charging status:" << state;
|
||||||
|
|
||||||
|
// Hide/show notification right away
|
||||||
|
showNotification();
|
||||||
|
// Reset the timer, too
|
||||||
|
updateConfig();
|
||||||
}
|
}
|
||||||
stateFile->close();
|
stateFile->close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue