From aefcf5262d8465090eb1deabce749dfbc9ade618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 2 May 2018 16:25:03 +0200 Subject: [PATCH] [apps] On a plugging event, the brightness is set a its prefered level instead of the maximum level --- apps/apps_container.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/apps_container.cpp b/apps/apps_container.cpp index 27f37d0d0..4c15fdfb6 100644 --- a/apps/apps_container.cpp +++ b/apps/apps_container.cpp @@ -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(); }