mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improve autoupdate code, move it from Application.
This commit is contained in:
@@ -396,7 +396,7 @@ bool CheckBetaVersionDir() {
|
||||
quint64 v;
|
||||
QByteArray k;
|
||||
dataStream >> v >> k;
|
||||
if (dataStream.status() == QDataStream::Ok) {
|
||||
if (dataStream.status() == QDataStream::Ok && !k.isEmpty()) {
|
||||
cSetBetaVersion(qMax(v, AppVersion * 1000ULL));
|
||||
cSetBetaPrivateKey(k);
|
||||
cSetRealBetaVersion(v);
|
||||
|
Reference in New Issue
Block a user