GH-4012 Disable Xbox login if no MS client token is specified

This commit is contained in:
Jamie Mansfield 2021-08-17 13:19:04 +01:00
parent 4ea52f4758
commit 2a21e28ffd
No known key found for this signature in database
GPG Key ID: 36F61598F39F67B0

View File

@ -69,6 +69,12 @@ AccountListPage::AccountListPage(QWidget *parent)
connect(m_accounts.get(), &AccountList::activeAccountChanged, this, &AccountListPage::listChanged); connect(m_accounts.get(), &AccountList::activeAccountChanged, this, &AccountListPage::listChanged);
updateButtonStates(); updateButtonStates();
// Xbox authentication won't work without a client identifier, so disable the button
// if the build didn't specify one (GH-4012)
if (BuildConfig.MSA_CLIENT_ID.isEmpty()) {
ui->actionAddMicrosoft->setEnabled(false);
}
} }
AccountListPage::~AccountListPage() AccountListPage::~AccountListPage()