diff options
| author | Petr Mrázek <peterix@gmail.com> | 2021-09-05 18:23:49 +0200 |
|---|---|---|
| committer | Petr Mrázek <peterix@gmail.com> | 2021-09-05 18:23:49 +0200 |
| commit | 878c4fb8103bc866e5368fbb7287e94cca190dff (patch) | |
| tree | fc8c0017d52af80bed159455f28c01f6a0dff648 /launcher/pages | |
| parent | d644fb2094f623e45bff237ede7d432121f72072 (diff) | |
| download | PrismLauncher-878c4fb8103bc866e5368fbb7287e94cca190dff.tar.gz PrismLauncher-878c4fb8103bc866e5368fbb7287e94cca190dff.tar.bz2 PrismLauncher-878c4fb8103bc866e5368fbb7287e94cca190dff.zip | |
NOISSUE Provide dummy implementation for the secrets library
Diffstat (limited to 'launcher/pages')
| -rw-r--r-- | launcher/pages/global/AccountListPage.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/launcher/pages/global/AccountListPage.cpp b/launcher/pages/global/AccountListPage.cpp index 6bb07b22..f52fa834 100644 --- a/launcher/pages/global/AccountListPage.cpp +++ b/launcher/pages/global/AccountListPage.cpp @@ -37,6 +37,8 @@ #include "BuildConfig.h" #include <dialogs/MSALoginDialog.h> +#include "Secrets.h" + AccountListPage::AccountListPage(QWidget *parent) : QMainWindow(parent), ui(new Ui::AccountListPage) { @@ -70,11 +72,8 @@ AccountListPage::AccountListPage(QWidget *parent) updateButtonStates(); - // Xbox authentication won't work without a client identifier, so disable the button - // if the build didn't specify one (GH-4012) -#ifndef EMBED_SECRETS - ui->actionAddMicrosoft->setVisible(false); -#endif + // Xbox authentication won't work without a client identifier, so disable the button if it is missing + ui->actionAddMicrosoft->setVisible(Secrets::hasMSAClientID()); } AccountListPage::~AccountListPage() |
