mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-12 02:05:50 +00:00
Show "full node" or "top-only" in the "Downloading bootstrap" message.
This commit is contained in:
parent
dedc8d89c7
commit
1b17c2613d
@ -371,6 +371,9 @@ public class Bootstrap {
|
||||
String bootstrapHost = this.getRandomHost();
|
||||
String bootstrapFilename = this.getFilename();
|
||||
String bootstrapUrl = String.format("%s/%s", bootstrapHost, bootstrapFilename);
|
||||
String type = Settings.getInstance().isTopOnly() ? "top-only" : "full node";
|
||||
|
||||
SplashFrame.getInstance().updateStatus(String.format("Downloading %s bootstrap...", type));
|
||||
|
||||
// Delete an existing file if it exists
|
||||
try {
|
||||
@ -408,7 +411,7 @@ public class Bootstrap {
|
||||
|
||||
if (fileSize > 0) {
|
||||
int progress = (int)((double)downloaded / (double)fileSize * 100);
|
||||
SplashFrame.getInstance().updateStatus(String.format("Downloading bootstrap... (%d%%)", progress));
|
||||
SplashFrame.getInstance().updateStatus(String.format("Downloading %s bootstrap... (%d%%)", type, progress));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user