Send repo revision.
This commit is contained in:
parent
003a17a06d
commit
791aa22050
|
@ -455,6 +455,7 @@ void VPApplication::InitOptions()
|
||||||
statistic->SetGUILanguage(settings->GetLocale());
|
statistic->SetGUILanguage(settings->GetLocale());
|
||||||
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
|
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
|
||||||
statistic->SetApiSecret(GA_API_SECRET);
|
statistic->SetApiSecret(GA_API_SECRET);
|
||||||
|
statistic->SetRepoRevision(QLatin1String(BUILD_REVISION));
|
||||||
statistic->Enable(settings->IsCollectStatistic());
|
statistic->Enable(settings->IsCollectStatistic());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -499,6 +499,7 @@ void MApplication::InitOptions()
|
||||||
statistic->SetGUILanguage(settings->GetLocale());
|
statistic->SetGUILanguage(settings->GetLocale());
|
||||||
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
|
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
|
||||||
statistic->SetApiSecret(GA_API_SECRET);
|
statistic->SetApiSecret(GA_API_SECRET);
|
||||||
|
statistic->SetRepoRevision(QLatin1String(BUILD_REVISION));
|
||||||
statistic->Enable(settings->IsCollectStatistic());
|
statistic->Enable(settings->IsCollectStatistic());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -720,6 +720,7 @@ void VApplication::InitOptions()
|
||||||
statistic->SetGUILanguage(settings->GetLocale());
|
statistic->SetGUILanguage(settings->GetLocale());
|
||||||
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
|
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
|
||||||
statistic->SetApiSecret(GA_API_SECRET);
|
statistic->SetApiSecret(GA_API_SECRET);
|
||||||
|
statistic->SetRepoRevision(QLatin1String(BUILD_REVISION));
|
||||||
statistic->Enable(settings->IsCollectStatistic());
|
statistic->Enable(settings->IsCollectStatistic());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ auto VGAnalytics::LogLevel() const -> enum VGAnalytics::LogLevel { return d->m_l
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VGAnalytics::SetRepoRevision(const QString &rev)
|
void VGAnalytics::SetRepoRevision(const QString &rev)
|
||||||
{
|
{
|
||||||
d->m_repoRevision = rev;
|
d->m_repoRevision = !rev.isEmpty() ? rev : QStringLiteral("Unknown");
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user