1.5.0-rc3 release
This commit is contained in:
parent
4ce39ab7fd
commit
47a5074ed1
1 changed files with 2 additions and 3 deletions
|
@ -59,7 +59,7 @@ void TelemetryClass::init()
|
||||||
telemetryStateForced = true;
|
telemetryStateForced = true;
|
||||||
#endif
|
#endif
|
||||||
QString telemetryLegacyClientID = settings.value("ClientID", QString()).toString();
|
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()));
|
telemetryClientID = QString::fromUtf8(QByteArray::fromBase64(settings.value("Identification", QByteArray()).toByteArray()));
|
||||||
}
|
}
|
||||||
|
@ -84,8 +84,7 @@ void TelemetryClass::init()
|
||||||
telemetryClientID = telemetryLegacyClientID;
|
telemetryClientID = telemetryLegacyClientID;
|
||||||
settings.setValue("Identification", telemetryLegacyClientID.toUtf8().toBase64());
|
settings.setValue("Identification", telemetryLegacyClientID.toUtf8().toBase64());
|
||||||
settings.setValue("IsPorted", true);
|
settings.setValue("IsPorted", true);
|
||||||
settings.setValue("ClientID", QString());
|
settings.setValue("ClientID", "v2+");
|
||||||
settings.remove("ClientID");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue