mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:46:13 +00:00
UI: AutoUpdateManager: Simplify setupByTaskInfo()
This commit is contained in:
parent
397eabfc18
commit
d8d2f6dc65
@ -186,7 +186,8 @@ void AutoUpdateManager::setupByTaskInfo(TaskInfoUpdateChecker *taskInfo)
|
|||||||
|
|
||||||
setIsDownloaded(downloaded);
|
setIsDownloaded(downloaded);
|
||||||
|
|
||||||
if (autoDownload() && isNewVersion() && !downloaded) {
|
const bool shouldDownload = (autoDownload() && isNewVersion());
|
||||||
|
if (shouldDownload && !downloaded) {
|
||||||
startDownload();
|
startDownload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user