Skip to content
This repository has been archived by the owner on May 31, 2018. It is now read-only.

Commit

Permalink
telemetry improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Syping committed Jan 26, 2018
1 parent 8b0db3e commit 15fd356
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions TelemetryClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void TelemetryClass::init()
telemetryStateForced = true;
#endif
QString telemetryLegacyClientID = settings.value("ClientID", QString()).toString();
if (telemetryLegacyClientID.isEmpty())
if (telemetryLegacyClientID.isEmpty() || telemetryLegacyClientID == "v2+")
{
telemetryClientID = QString::fromUtf8(QByteArray::fromBase64(settings.value("Identification", QByteArray()).toByteArray()));
}
Expand All @@ -84,8 +84,7 @@ void TelemetryClass::init()
telemetryClientID = telemetryLegacyClientID;
settings.setValue("Identification", telemetryLegacyClientID.toUtf8().toBase64());
settings.setValue("IsPorted", true);
settings.setValue("ClientID", QString());
settings.remove("ClientID");
settings.setValue("ClientID", "v2+");
}
else
{
Expand Down

0 comments on commit 15fd356

Please sign in to comment.