Send usage statistic only in GUI mode.
This commit is contained in:
parent
2c1b151853
commit
fbfb63feaa
|
@ -279,7 +279,7 @@ VPApplication::VPApplication(int &argc, char **argv)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VPApplication::~VPApplication()
|
||||
{
|
||||
if (settings->IsCollectStatistic())
|
||||
if (IsAppInGUIMode() && settings->IsCollectStatistic())
|
||||
{
|
||||
auto *statistic = VGAnalytics::Instance();
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@ MApplication::MApplication(int &argc, char **argv)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
MApplication::~MApplication()
|
||||
{
|
||||
if (settings->IsCollectStatistic())
|
||||
if (IsAppInGUIMode() && settings->IsCollectStatistic())
|
||||
{
|
||||
auto *statistic = VGAnalytics::Instance();
|
||||
|
||||
|
|
|
@ -385,7 +385,7 @@ VApplication::~VApplication()
|
|||
{
|
||||
qCDebug(vApp, "Application closing.");
|
||||
|
||||
if (settings->IsCollectStatistic())
|
||||
if (IsGUIMode() && settings->IsCollectStatistic())
|
||||
{
|
||||
auto *statistic = VGAnalytics::Instance();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user