Fix update all

This commit is contained in:
Victor Shcherb 2015-10-21 17:00:58 +02:00
parent 9eb9750134
commit 555145f04b
2 changed files with 6 additions and 0 deletions

View file

@ -425,6 +425,8 @@ public class DownloadIndexesThread {
warn += " " + wn;
}
filesToReindex.clear();
// slow down but let update all button work properly
indexes.updateFilesToUpdate();;
}
}
} finally {

View file

@ -124,6 +124,10 @@ public class DownloadResources extends DownloadResourceGroup {
protected void updateFilesToUpdate() {
initAlreadyLoadedFiles();
recalculateFilesToUpdate();
}
private void recalculateFilesToUpdate() {
List<IndexItem> stillUpdate = new ArrayList<IndexItem>();
for (IndexItem item : itemsToUpdate) {
String sfName = item.getTargetFileName();