From 397b1d77bbd5d877e59c63cc13b1f3f2e0ec3fba Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Sun, 26 Apr 2020 11:37:19 +0300 Subject: [PATCH] Don't restore charging status on exit (it's the daemons job) --- application/src/battery.h | 2 +- application/src/harbour-batterybuddy.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/application/src/battery.h b/application/src/battery.h index d8981ae..fc2cb5f 100644 --- a/application/src/battery.h +++ b/application/src/battery.h @@ -53,7 +53,7 @@ private: QFile* chargeFile; QFile* chargerConnectedFile; QFile* stateFile; - QFile* chargingEnabledFile = Q_NULLPTR; + QFile* chargingEnabledFile; Settings* settings; // Default values: diff --git a/application/src/harbour-batterybuddy.cpp b/application/src/harbour-batterybuddy.cpp index e79e8d4..5c704a7 100644 --- a/application/src/harbour-batterybuddy.cpp +++ b/application/src/harbour-batterybuddy.cpp @@ -90,8 +90,6 @@ int main(int argc, char *argv[]) qInfo() << "Exiting..."; updater->stop(); - battery->blockSignals(true); - battery->setChargingEnabled(true); delete updater; delete battery;