1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

Added a popup to the Projucer informing the user about the collection of analytics data

This commit is contained in:
hogliux 2017-05-04 15:24:28 +01:00
parent 5d491ee9c7
commit 9b7e944a54
13 changed files with 322 additions and 40 deletions

View file

@ -113,13 +113,19 @@ void Project::setMissingDefaultValues()
setTitle ("JUCE Project");
{
auto defaultSplashScreenAndReporting = ! ProjucerApplication::getApp().isPaidOrGPL();
auto defaultSplashScreen = ! ProjucerApplication::getApp().isPaidOrGPL();
if (shouldDisplaySplashScreen() == var() || defaultSplashScreenAndReporting)
shouldDisplaySplashScreen() = defaultSplashScreenAndReporting;
if (shouldDisplaySplashScreen() == var() || defaultSplashScreen)
shouldDisplaySplashScreen() = defaultSplashScreen;
if (shouldReportAppUsage() == var() || defaultSplashScreenAndReporting)
shouldReportAppUsage() = defaultSplashScreenAndReporting;
if (ProjucerApplication::getApp().isPaidOrGPL())
{
if (shouldReportAppUsage() == var())
shouldReportAppUsage() = ProjucerApplication::getApp().licenseController->getState().applicationUsageDataState
== LicenseState::ApplicationUsageData::enabled;
}
else
shouldReportAppUsage() = true;
}
if (splashScreenColour() == var())