fix: Disable the save button when config not writable

This commit is contained in:
Nick Bolton
2025-05-12 16:32:24 +01:00
parent 486b5a491f
commit 34f6186941

View File

@ -252,6 +252,8 @@ void SettingsDialog::updateControls()
const bool serviceChecked = ui->groupService->isChecked();
const bool logToFile = ui->cbLogToFile->isChecked();
ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(writable);
ui->sbPort->setEnabled(writable);
ui->lineInterface->setEnabled(writable);
ui->comboLogLevel->setEnabled(writable);