Skip to content

Commit

Permalink
Quick fix for download-map progress bars to be more accurate (#12567)
Browse files Browse the repository at this point in the history
Download length is currently always '-1', the negative values
cause odd behavior.
  • Loading branch information
DanVanAtta authored May 6, 2024
1 parent c005e73 commit ac2b794
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private void updateProgressBarWithPercentComplete(
() -> {
progressBar.setIndeterminate(false);
progressBar.setString(null);
progressBar.setValue(percentComplete);
progressBar.setValue(Math.max(0, percentComplete));
progressBar.setToolTipText(toolTipText);
});
}
Expand Down

0 comments on commit ac2b794

Please sign in to comment.