From 69ea8cb61757cf1f14e016b22ef2aba96c4fc589 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Sat, 17 Nov 2018 15:51:02 -0800 Subject: [PATCH] Show dots when loading for some entertainment --- src/connection.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/connection.cpp b/src/connection.cpp index b6ba4a7..7768ffd 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -384,6 +384,13 @@ void ConnectionLoader::refreshZcashdState(Connection* connection, std::function< !res.is_discarded()) { // The server is loading, so just poll until it succeeds QString status = QString::fromStdString(res["error"]["message"]); + { + static int dots = 0; + status = status.left(status.length() - 3) + QString(".").repeated(dots); + dots++; + if (dots > 3) + dots = 0; + } this->showInformation("Your zcashd is starting up. Please wait.", status); // Refresh after one second