fix: disable account override if no account selected

Signed-off-by: Lenny McLennington <lenny@sneed.church>
This commit is contained in:
Lenny McLennington 2022-11-17 02:09:17 +00:00
parent de1de47940
commit 462e0ef56d
No known key found for this signature in database
GPG Key ID: F0467078ECA45FCB

View File

@ -416,6 +416,11 @@ void InstanceSettingsPage::loadSettings()
ui->accountComboBox->addItem(tr("No accounts available")); ui->accountComboBox->addItem(tr("No accounts available"));
ui->accountComboBox->setDisabled(true); ui->accountComboBox->setDisabled(true);
} }
// If there isn't a currently selected account, the override should show as disabled
if (ui->accountComboBox->currentIndex() == -1) {
ui->accountGroupBox->setChecked(false);
}
} }
void InstanceSettingsPage::on_javaDetectBtn_clicked() void InstanceSettingsPage::on_javaDetectBtn_clicked()