diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-01-21 18:18:53 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-01-21 18:27:16 +0100 |
commit | 782384f185720699c5105271bfc78275bdc78054 (patch) | |
tree | ff34b04d183ffa856bb757b06f82a0a652083aa3 /application/setupwizard/AnalyticsWizardPage.cpp | |
parent | ceb5fc6d755cdcb263edc27386db38de9499048f (diff) | |
download | MultiMC-782384f185720699c5105271bfc78275bdc78054.tar MultiMC-782384f185720699c5105271bfc78275bdc78054.tar.gz MultiMC-782384f185720699c5105271bfc78275bdc78054.tar.lz MultiMC-782384f185720699c5105271bfc78275bdc78054.tar.xz MultiMC-782384f185720699c5105271bfc78275bdc78054.zip |
GH-1793 rearrange setup wizard logic to only check if they are needed once
Diffstat (limited to 'application/setupwizard/AnalyticsWizardPage.cpp')
-rw-r--r-- | application/setupwizard/AnalyticsWizardPage.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/application/setupwizard/AnalyticsWizardPage.cpp b/application/setupwizard/AnalyticsWizardPage.cpp index ee834db9..f32bfcf6 100644 --- a/application/setupwizard/AnalyticsWizardPage.cpp +++ b/application/setupwizard/AnalyticsWizardPage.cpp @@ -41,25 +41,6 @@ bool AnalyticsWizardPage::validatePage() return true; } -bool AnalyticsWizardPage::isRequired() -{ - if(BuildConfig.ANALYTICS_ID.isEmpty()) - { - return false; - } - auto settings = MMC->settings(); - auto analytics = MMC->analytics(); - if (!settings->get("Analytics").toBool()) - { - return false; - } - if (settings->get("AnalyticsSeen").toInt() < analytics->version()) - { - return true; - } - return false; -} - void AnalyticsWizardPage::retranslate() { setTitle(tr("Analytics")); |