Collapse else-if
This commit is contained in:
parent
aeca6a5dc0
commit
ddec3d2431
@ -342,10 +342,8 @@ bool MainWindow::setMonitorBrightness(float brightness)
|
|||||||
if(!m_monitors[i].driver.setBrightness(m_monitors[i].brightness)) {
|
if(!m_monitors[i].driver.setBrightness(m_monitors[i].brightness)) {
|
||||||
errorOccurred = true;
|
errorOccurred = true;
|
||||||
}
|
}
|
||||||
else {
|
else if(m_ui.monitorDropdown->currentIndex() == i) {
|
||||||
if(m_ui.monitorDropdown->currentIndex() == i) {
|
updateCurrentMonitorGUI(i);
|
||||||
updateCurrentMonitorGUI(i);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user