Don't restore charging status on exit (it's the daemons job)
This commit is contained in:
parent
be4e2f335d
commit
397b1d77bb
2 changed files with 1 additions and 3 deletions
|
@ -53,7 +53,7 @@ private:
|
|||
QFile* chargeFile;
|
||||
QFile* chargerConnectedFile;
|
||||
QFile* stateFile;
|
||||
QFile* chargingEnabledFile = Q_NULLPTR;
|
||||
QFile* chargingEnabledFile;
|
||||
Settings* settings;
|
||||
|
||||
// Default values:
|
||||
|
|
|
@ -90,8 +90,6 @@ int main(int argc, char *argv[])
|
|||
qInfo() << "Exiting...";
|
||||
|
||||
updater->stop();
|
||||
battery->blockSignals(true);
|
||||
battery->setChargingEnabled(true);
|
||||
|
||||
delete updater;
|
||||
delete battery;
|
||||
|
|
Loading…
Reference in a new issue