UltimMC: Make separate section for local accounts

This commit is contained in:
Neptune
2024-03-05 17:26:00 -05:00
parent eba8c1e33f
commit fb323d8a0b
8 changed files with 267 additions and 5 deletions

View File

@@ -29,14 +29,14 @@ LoginDialog::LoginDialog(QWidget *parent) : QDialog(parent), ui(new Ui::LoginDia
for(auto provider: AuthProviders::getAll()) {
auto providerId = provider->id();
// Exclude Microsoft account from here...
if (providerId != "MSA") {
// Exclude Microsoft and Local accounts from here...
if (providerId != "MSA" && providerId != "dummy") {
QRadioButton *button = new QRadioButton(provider->displayName());
m_radioButtons[providerId] = button;
ui->radioLayout->addWidget(button);
}
}
m_radioButtons["dummy"]->setChecked(true);
m_radioButtons["elyby"]->setChecked(true);
adjustSize();
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);