Disable the LBA Enhancer checkbox when the ROM isn't available

This commit is contained in:
Alexander Babikov
2024-03-11 19:25:13 +05:00
parent a3b8e0f1b2
commit 45e76af96f

View File

@@ -206,6 +206,7 @@ SettingsStorageControllers::onCurrentMachineChanged(int machineId)
ui->checkBoxCassette->setEnabled(false);
}
ui->checkBoxLbaEnhancer->setEnabled(device_available(&lba_enhancer_device));
ui->checkBoxLbaEnhancer->setChecked(lba_enhancer_enabled > 0 && device_available(&lba_enhancer_device));
ui->pushButtonConfigureLbaEnhancer->setEnabled(ui->checkBoxLbaEnhancer->isChecked());
}