[apps] Set the backlight brightness at maximum when plugging the USB

Change-Id: If544eaa5b34fecc1117beb82909f1f5c8a82760f
This commit is contained in:
Émilie Feral
2017-05-23 15:58:54 +02:00
parent abee7f8c1b
commit 4c4dd4b33d

View File

@@ -20,6 +20,9 @@ bool USBTimer::fire() {
KDColor LEDColor = Ion::Battery::isCharging() ? KDColorYellow : KDColorGreen;
Ion::LED::setColor(LEDColor);
#endif
if (!m_previousPluggedState) {
Ion::Backlight::setBrightness(Ion::Backlight::MaxBrightness);
}
m_previousPluggedState = true;
} else {
if (m_previousPluggedState) {