mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T698, enable network stats for restricted distributions
This commit is contained in:
committed by
Mat Sutcliffe
parent
25dc43f19c
commit
891a058f17
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "network.h"
|
||||
#include "blackcore/application.h"
|
||||
#include "blackmisc/fileutils.h"
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
@@ -115,4 +116,15 @@ namespace BlackCore
|
||||
return CFileUtils::writeStringToFile(s, fp);
|
||||
}
|
||||
|
||||
void INetwork::connectedToNewtork()
|
||||
{
|
||||
if (!sApp || sApp->isShuttingDown()) { return; }
|
||||
if (!m_statistics && (CBuildConfig::isLocalDeveloperDebugBuild() || sApp->getOwnDistribution().isRestricted()))
|
||||
{
|
||||
// enable for local and restricted versions (alpha, ...)
|
||||
CLogMessage("Enabled network statistics");
|
||||
m_statistics = true;
|
||||
}
|
||||
}
|
||||
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user