mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 11:55:52 -04:00
fix: Progress bar reaches 100% in advance
This commit is contained in:
parent
47523db331
commit
ef118d3736
@ -334,7 +334,7 @@ public final class SelfDependencyPatcher {
|
||||
final String url = repository.resolveDependencyURL(dependency);
|
||||
SwingUtilities.invokeLater(() -> {
|
||||
dialog.setStatus(url);
|
||||
dialog.setProgress(currentProgress, dependencies.size());
|
||||
dialog.setProgress(currentProgress, dependencies.size() + 1);
|
||||
});
|
||||
|
||||
LOG.info("Downloading " + url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user