1.5.0-rc3 release

This commit is contained in:
Syping 2018-01-26 07:53:24 +01:00
parent 4ce39ab7fd
commit 47a5074ed1

View file

@ -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()));
}
@ -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
{