From b588a4ee024f79fe7a90f91a1904930e8c93e356 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 28 Jan 2021 11:19:57 +0200 Subject: [PATCH] always show scan time remaining --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index f396efd9..ac44b4a6 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/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); }