Skip to content

Commit

Permalink
Fix oversight in new dialog box
Browse files Browse the repository at this point in the history
The new dialog box hijacked the function and skipped the fetch if there were less than 5 files. Now directly runs if there are 5 files or less, and shows the dialog if there are more than 5\
  • Loading branch information
KenJyn76 authored and JonathanFeenstra committed Oct 5, 2024
1 parent c66917a commit 7e07f37
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/downloadmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,18 @@ void DownloadManager::queryDownloadListInfo()
}
}

// Warn the user if the number of incomplete infos is over 5
if (incompleteInfos > 5) {
if (incompleteInfos <= 5) {
// Fetch metadata for incomplete download infos
startDisableDirWatcher();
for (size_t i = 0; i < m_ActiveDownloads.size(); i++) {
if (isInfoIncomplete(i)) {
queryInfoMd5(i);
}
}
endDisableDirWatcher();
} else {

// Warn the user if the number of incomplete infos is over 5
QString message = tr("There %1 incomplete download meta files.\n\n"
"Do you want to fetch metadata for all incomplete downloads?\n"
"API uses will be consumed, and Mod Organizer may stutter.");
Expand Down

0 comments on commit 7e07f37

Please sign in to comment.