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:
Petr Mrázek 2021-08-22 20:34:25 +00:00 committed by GitHub
commit 5c0e70e237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,12 @@ AccountListPage::AccountListPage(QWidget *parent)
connect(m_accounts.get(), &AccountList::activeAccountChanged, this, &AccountListPage::listChanged);
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()