Don't restore charging status on exit (it's the daemons job)

This commit is contained in:
Matti Viljanen 2020-04-26 11:37:19 +03:00
parent be4e2f335d
commit 397b1d77bb
No known key found for this signature in database
GPG key ID: CF32A1495158F888
2 changed files with 1 additions and 3 deletions

View file

@ -53,7 +53,7 @@ private:
QFile* chargeFile;
QFile* chargerConnectedFile;
QFile* stateFile;
QFile* chargingEnabledFile = Q_NULLPTR;
QFile* chargingEnabledFile;
Settings* settings;
// Default values:

View file

@ -90,8 +90,6 @@ int main(int argc, char *argv[])
qInfo() << "Exiting...";
updater->stop();
battery->blockSignals(true);
battery->setChargingEnabled(true);
delete updater;
delete battery;