Browse Source

Show dots when loading for some entertainment

import_zecw
adityapk00 6 years ago
parent
commit
69ea8cb617
  1. 7
      src/connection.cpp

7
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

Loading…
Cancel
Save