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)) {
|
||||
errorOccurred = true;
|
||||
}
|
||||
else {
|
||||
if(m_ui.monitorDropdown->currentIndex() == i) {
|
||||
updateCurrentMonitorGUI(i);
|
||||
}
|
||||
else if(m_ui.monitorDropdown->currentIndex() == i) {
|
||||
updateCurrentMonitorGUI(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user