Don't update timers immediately on charger dis/connect
Fixes unnecessary "Connect charger" notification right after charger is connected
This commit is contained in:
parent
d49b661053
commit
5cca284fa7
1 changed files with 0 additions and 3 deletions
|
@ -111,9 +111,6 @@ void Battery::updateData()
|
||||||
chargerConnected = nextChargerConnected;
|
chargerConnected = nextChargerConnected;
|
||||||
emit chargerConnectedChanged(chargerConnected);
|
emit chargerConnectedChanged(chargerConnected);
|
||||||
qDebug() << "Charger is connected:" << chargerConnected;
|
qDebug() << "Charger is connected:" << chargerConnected;
|
||||||
|
|
||||||
// Hide/show notification right away
|
|
||||||
resetTimers();
|
|
||||||
}
|
}
|
||||||
chargerConnectedFile->close();
|
chargerConnectedFile->close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue