[apps] On a plugging event, the brightness is set a its prefered level instead

of the maximum level
This commit is contained in:
Émilie Feral
2018-05-02 16:25:03 +02:00
committed by Ecco
parent 7bc5142c8f
commit aefcf5262d

View File

@@ -127,7 +127,7 @@ bool AppsContainer::processEvent(Ion::Events::Event event) {
} else {
Ion::USB::enable();
}
Ion::Backlight::setBrightness(Ion::Backlight::MaxBrightness);
Ion::Backlight::setBrightness(GlobalPreferences::sharedGlobalPreferences()->brightnessLevel());
} else {
Ion::USB::disable();
}