Make sure charging is disabled on exit

This commit is contained in:
Matti Viljanen 2020-03-20 17:29:09 +02:00
parent da92cb4c7a
commit fecaad492a
No known key found for this signature in database
GPG key ID: CF32A1495158F888

View file

@ -60,6 +60,10 @@ int main(int argc, char *argv[])
int retval = app->exec();
updater->stop();
battery->blockSignals(true);
battery->setChargingEnabled(true);
delete updater;
delete battery;
delete settings;