From 2a21e28ffd6d7a0a72c2acfda6df0e31d3b1c6bd Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Tue, 17 Aug 2021 13:19:04 +0100 Subject: [PATCH] GH-4012 Disable Xbox login if no MS client token is specified --- launcher/pages/global/AccountListPage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/launcher/pages/global/AccountListPage.cpp b/launcher/pages/global/AccountListPage.cpp index a3cd86a4..286bbeec 100644 --- a/launcher/pages/global/AccountListPage.cpp +++ b/launcher/pages/global/AccountListPage.cpp @@ -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()