Don't update timers immediately on charger dis/connect

Fixes unnecessary "Connect charger" notification right after charger is connected
This commit is contained in:
Matti Viljanen 2020-12-27 02:24:19 +02:00
parent d49b661053
commit 5cca284fa7

View file

@ -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();
}