mirror of
https://github.com/tnodir/fort
synced 2024-11-15 01:25:52 +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);
|
||||
|
||||
if (autoDownload() && isNewVersion() && !downloaded) {
|
||||
const bool shouldDownload = (autoDownload() && isNewVersion());
|
||||
if (shouldDownload && !downloaded) {
|
||||
startDownload();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user