mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 21:15:19 +00:00
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);
|
||||
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user