Send usage statistic only in GUI mode.

This commit is contained in:
Roman Telezhynskyi 2023-06-28 08:21:32 +03:00
parent 2c1b151853
commit fbfb63feaa
3 changed files with 3 additions and 3 deletions

View File

@ -279,7 +279,7 @@ VPApplication::VPApplication(int &argc, char **argv)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VPApplication::~VPApplication() VPApplication::~VPApplication()
{ {
if (settings->IsCollectStatistic()) if (IsAppInGUIMode() && settings->IsCollectStatistic())
{ {
auto *statistic = VGAnalytics::Instance(); auto *statistic = VGAnalytics::Instance();

View File

@ -321,7 +321,7 @@ MApplication::MApplication(int &argc, char **argv)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
MApplication::~MApplication() MApplication::~MApplication()
{ {
if (settings->IsCollectStatistic()) if (IsAppInGUIMode() && settings->IsCollectStatistic())
{ {
auto *statistic = VGAnalytics::Instance(); auto *statistic = VGAnalytics::Instance();

View File

@ -385,7 +385,7 @@ VApplication::~VApplication()
{ {
qCDebug(vApp, "Application closing."); qCDebug(vApp, "Application closing.");
if (settings->IsCollectStatistic()) if (IsGUIMode() && settings->IsCollectStatistic())
{ {
auto *statistic = VGAnalytics::Instance(); auto *statistic = VGAnalytics::Instance();