aboutsummaryrefslogtreecommitdiff
path: root/launcher/pages
diff options
context:
space:
mode:
authorJamie Mansfield <jmansfield@cadixdev.org>2021-08-17 13:19:04 +0100
committerJamie Mansfield <jmansfield@cadixdev.org>2021-08-17 13:19:04 +0100
commit2a21e28ffd6d7a0a72c2acfda6df0e31d3b1c6bd (patch)
treefbfdf00689394227e1c1c6ae6eaf1d94d11ace77 /launcher/pages
parent4ea52f4758c2dd8e24b296cfaae349e60a5bf3e8 (diff)
downloadPrismLauncher-2a21e28ffd6d7a0a72c2acfda6df0e31d3b1c6bd.tar.gz
PrismLauncher-2a21e28ffd6d7a0a72c2acfda6df0e31d3b1c6bd.tar.bz2
PrismLauncher-2a21e28ffd6d7a0a72c2acfda6df0e31d3b1c6bd.zip
GH-4012 Disable Xbox login if no MS client token is specified
Diffstat (limited to 'launcher/pages')
-rw-r--r--launcher/pages/global/AccountListPage.cpp6
1 files changed, 6 insertions, 0 deletions
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()