From aeca6a5dc0a3d20a3b64d76c83809ea562be24ef Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 17 Jul 2020 17:24:43 +0200 Subject: [PATCH] Only update brightness if manual override is enabled --- AdaptiveBrightness/main_window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AdaptiveBrightness/main_window.cpp b/AdaptiveBrightness/main_window.cpp index 49aec55..fba211d 100644 --- a/AdaptiveBrightness/main_window.cpp +++ b/AdaptiveBrightness/main_window.cpp @@ -191,7 +191,9 @@ void MainWindow::setupOverallBrightness() const auto newBrightness = utils::map(value, 0, 100, 0.f, 1.f); qDebug(ltr("Overriding overall brightness with %1").arg(newBrightness)); for(auto& monitor: m_monitors) { - monitor.brightness = newBrightness; + if(monitor.manualOverride) { + monitor.brightness = newBrightness; + } } updateCurrentMonitorGUI(m_ui.monitorDropdown->currentIndex()); });