mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +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 <ganalytics.h>
|
||||
#include <BuildConfig.h>
|
||||
|
||||
AnalyticsWizardPage::AnalyticsWizardPage(QWidget *parent)
|
||||
: BaseWizardPage(parent)
|
||||
@ -42,6 +43,10 @@ bool AnalyticsWizardPage::validatePage()
|
||||
|
||||
bool AnalyticsWizardPage::isRequired()
|
||||
{
|
||||
if(BuildConfig.ANALYTICS_ID.isEmpty())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
auto settings = MMC->settings();
|
||||
auto analytics = MMC->analytics();
|
||||
if (!settings->get("Analytics").toBool())
|
||||
|
Loading…
Reference in New Issue
Block a user