Show dots when loading for some entertainment

This commit is contained in:
adityapk00
2018-11-17 15:51:02 -08:00
parent 5c633dcbd5
commit 69ea8cb617

View File

@@ -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