Disable the LBA Enhancer checkbox when the ROM isn't available
This commit is contained in:
@@ -206,6 +206,7 @@ SettingsStorageControllers::onCurrentMachineChanged(int machineId)
|
|||||||
ui->checkBoxCassette->setEnabled(false);
|
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->checkBoxLbaEnhancer->setChecked(lba_enhancer_enabled > 0 && device_available(&lba_enhancer_device));
|
||||||
ui->pushButtonConfigureLbaEnhancer->setEnabled(ui->checkBoxLbaEnhancer->isChecked());
|
ui->pushButtonConfigureLbaEnhancer->setEnabled(ui->checkBoxLbaEnhancer->isChecked());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user