Collapse else-if

This commit is contained in:
BlackMark 2020-07-17 17:31:56 +02:00
parent aeca6a5dc0
commit ddec3d2431

View File

@ -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;
}