mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
NOISSUE do not show the analytics wizard page without analytics in the build
This commit is contained in:
parent
858b490c74
commit
3e81e2cb5b
@ -6,6 +6,7 @@
|
|||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
|
|
||||||
#include <ganalytics.h>
|
#include <ganalytics.h>
|
||||||
|
#include <BuildConfig.h>
|
||||||
|
|
||||||
AnalyticsWizardPage::AnalyticsWizardPage(QWidget *parent)
|
AnalyticsWizardPage::AnalyticsWizardPage(QWidget *parent)
|
||||||
: BaseWizardPage(parent)
|
: BaseWizardPage(parent)
|
||||||
@ -42,6 +43,10 @@ bool AnalyticsWizardPage::validatePage()
|
|||||||
|
|
||||||
bool AnalyticsWizardPage::isRequired()
|
bool AnalyticsWizardPage::isRequired()
|
||||||
{
|
{
|
||||||
|
if(BuildConfig.ANALYTICS_ID.isEmpty())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
auto settings = MMC->settings();
|
auto settings = MMC->settings();
|
||||||
auto analytics = MMC->analytics();
|
auto analytics = MMC->analytics();
|
||||||
if (!settings->get("Analytics").toBool())
|
if (!settings->get("Analytics").toBool())
|
||||||
|
Loading…
Reference in New Issue
Block a user