qt: Properly display tertiary/quarternary IDE toggle in Settings

This commit is contained in:
Cacodemon345
2022-07-30 14:38:44 +06:00
parent 94c84b299d
commit 313b2ab852

View File

@@ -161,6 +161,8 @@ void SettingsStorageControllers::onCurrentMachineChanged(int machineId) {
int is_at = IS_AT(machineId);
ui->checkBoxTertiaryIDE->setEnabled(is_at > 0);
ui->checkBoxQuaternaryIDE->setEnabled(is_at > 0);
ui->checkBoxTertiaryIDE->setChecked(ui->checkBoxTertiaryIDE->isEnabled() && ide_ter_enabled);
ui->checkBoxQuaternaryIDE->setChecked(ui->checkBoxQuaternaryIDE->isEnabled() && ide_ter_enabled);
}
void SettingsStorageControllers::on_comboBoxHD_currentIndexChanged(int index) {