diff options
author | Petr Mrázek <peterix@users.noreply.github.com> | 2021-08-22 20:34:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 20:34:25 +0000 |
commit | 5c0e70e2376ec64e4ebf3c485decc2aa3d228527 (patch) | |
tree | 72692098acc0edcd7c40109eb8ae4d87911a94b0 /launcher | |
parent | e2be2ada05c503701f048b09cb14ff923a48e056 (diff) | |
parent | 2a21e28ffd6d7a0a72c2acfda6df0e31d3b1c6bd (diff) | |
download | PrismLauncher-5c0e70e2376ec64e4ebf3c485decc2aa3d228527.tar.gz PrismLauncher-5c0e70e2376ec64e4ebf3c485decc2aa3d228527.tar.bz2 PrismLauncher-5c0e70e2376ec64e4ebf3c485decc2aa3d228527.zip |
Merge pull request #4017 from jamierocks/fix-4012
GH-4012 Disable Xbox login if no MS client token is specified
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/pages/global/AccountListPage.cpp | 6 |
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() |