Downloading assets doesn't show the total size
When starting a new version, it doesn't show the size in MiB of the files it's downloading. The JSON from Mojang tells us how large each asset is, so we can show the loading bar quite quickly, before downloading anything.
I was wondering how this should be implemented? I was just going to add a second CountUpAndDownLatch
to the VerifyAssetsDialog
, and add the second latch to all the functions that take the first latch. Is this a good way of going about fixing this, or should I write a wrapper class that has both latches, or something else?
I'm writing the first way right now, and I'll have a PR in a little while that should fix this.
EDIT: I've written an update. Using a new wrapper class for both the count and downloaded size proved to be easier to work with. However, I cannot create a merge request. Is there some way I can send you a merge request or a patch?