Browse Source

always show scan time remaining

terminal
Craig Raw 4 years ago
parent
commit
b588a4ee02
  1. 2
      src/main/java/com/sparrowwallet/sparrow/AppController.java

2
src/main/java/com/sparrowwallet/sparrow/AppController.java

@ -1297,7 +1297,7 @@ public class AppController implements Initializable {
public void bwtScanStatus(BwtScanStatusEvent event) {
serverToggle.setDisable(true);
if((AppServices.isConnecting() || AppServices.isConnected()) && !event.isCompleted()) {
statusUpdated(new StatusEvent("Scanning... (" + event.getProgress() + "% complete" + (event.getProgress() > 30 ? ", " + event.getRemainingAsString() + " remaining)" : ")")));
statusUpdated(new StatusEvent("Scanning... (" + event.getProgress() + "% complete, " + event.getRemainingAsString() + " remaining)"));
if(event.getProgress() > 0 && (statusTimeline == null || statusTimeline.getStatus() != Animation.Status.RUNNING)) {
statusBar.setProgress((double)event.getProgress() / 100);
}

Loading…
Cancel
Save