mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Don't try to update without the updater binary
This commit is contained in:
parent
1f88312a01
commit
9408219443
|
@ -86,6 +86,9 @@ bool AutoUpdater::isUpdateAvailable()
|
|||
if (isDownloadingUpdate)
|
||||
return false;
|
||||
|
||||
if (!QFile::exists(updaterBin))
|
||||
return false;
|
||||
|
||||
QByteArray updateFlist = getUpdateFlist();
|
||||
QList<UpdateFileMeta> diff = genUpdateDiff(parseFlist(updateFlist));
|
||||
return !diff.isEmpty();
|
||||
|
|
Loading…
Reference in New Issue
Block a user