Only update brightness if manual override is enabled

This commit is contained in:
BlackMark 2020-07-17 17:24:43 +02:00
parent 4956dde368
commit aeca6a5dc0

View File

@ -191,7 +191,9 @@ void MainWindow::setupOverallBrightness()
const auto newBrightness = utils::map(value, 0, 100, 0.f, 1.f); const auto newBrightness = utils::map(value, 0, 100, 0.f, 1.f);
qDebug(ltr("Overriding overall brightness with %1").arg(newBrightness)); qDebug(ltr("Overriding overall brightness with %1").arg(newBrightness));
for(auto& monitor: m_monitors) { for(auto& monitor: m_monitors) {
monitor.brightness = newBrightness; if(monitor.manualOverride) {
monitor.brightness = newBrightness;
}
} }
updateCurrentMonitorGUI(m_ui.monitorDropdown->currentIndex()); updateCurrentMonitorGUI(m_ui.monitorDropdown->currentIndex());
}); });