Merge pull request #4017 from jamierocks/fix-4012
GH-4012 Disable Xbox login if no MS client token is specified
This commit is contained in:
commit
5c0e70e237
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user