mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-28 15:18:21 +00:00
GH-4012 Disable Xbox login if no MS client token is specified
This commit is contained in:
parent
4ea52f4758
commit
2a21e28ffd
@ -69,6 +69,12 @@ AccountListPage::AccountListPage(QWidget *parent)
|
|||||||
connect(m_accounts.get(), &AccountList::activeAccountChanged, this, &AccountListPage::listChanged);
|
connect(m_accounts.get(), &AccountList::activeAccountChanged, this, &AccountListPage::listChanged);
|
||||||
|
|
||||||
updateButtonStates();
|
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()
|
AccountListPage::~AccountListPage()
|
||||||
|
Loading…
Reference in New Issue
Block a user