Only update brightness if manual override is enabled
This commit is contained in:
parent
4956dde368
commit
aeca6a5dc0
@ -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());
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user