From 5cca284fa7d2bb7ce2b4a1d5a93fe3e4761042a4 Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Sun, 27 Dec 2020 02:24:19 +0200 Subject: [PATCH] Don't update timers immediately on charger dis/connect Fixes unnecessary "Connect charger" notification right after charger is connected --- service/src/battery.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/service/src/battery.cpp b/service/src/battery.cpp index 7deb31f..29b4954 100644 --- a/service/src/battery.cpp +++ b/service/src/battery.cpp @@ -111,9 +111,6 @@ void Battery::updateData() chargerConnected = nextChargerConnected; emit chargerConnectedChanged(chargerConnected); qDebug() << "Charger is connected:" << chargerConnected; - - // Hide/show notification right away - resetTimers(); } chargerConnectedFile->close(); }