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